修复几处notice报错

This commit is contained in:
luofei614
2015-12-08 05:01:50 -05:00
parent 192dfa1b7c
commit 4db4a228a2
3 changed files with 13 additions and 2 deletions

View File

@@ -327,7 +327,7 @@ class Route
/**
* 检查正则路由
*/
private function checkRegex($route, $url, $matches)
private static function checkRegex($route, $url, $matches)
{
// 正则路由
if ($route instanceof \Closure) {
@@ -341,7 +341,7 @@ class Route
/**
* 检查规则路由
*/
private function checkRule($rule, $route, $url, $pattern)
private static function checkRule($rule, $route, $url, $pattern)
{
$len1 = substr_count($url, '/');
$len2 = substr_count($rule, '/');