浏览代码

$code referenced but not defined in compileRoute()

Lee McDermott 14 年之前
父节点
当前提交
2c0efa7488
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php

+ 1 - 0
src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php

@@ -101,6 +101,7 @@ EOF;
 
     private function compileRoute(Route $route, $name, $supportsRedirections, $parentPrefix = null)
     {
+        $code = array();
         $compiledRoute = $route->compile();
         $conditions = array();
         $hasTrailingSlash = false;