Browse Source

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

shalvah 5 years ago
parent
commit
a24b1e14b1
1 changed files with 1 additions and 1 deletions
  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 = [])