소스 검색

Fix iteration over null bug - set responses to empty array (fix #648)

shalvah 5 년 전
부모
커밋
a24b1e14b1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Extracting/Generator.php

+ 1 - 1
src/Extracting/Generator.php

@@ -123,7 +123,7 @@ class Generator
             });
         }
 
-        return null;
+        return [];
     }
 
     protected function fetchRequestHeaders(ReflectionClass $controller, ReflectionMethod $method, Route $route, array $rulesToApply, array $context = [])