Ver Fonte

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

shalvah há 5 anos atrás
pai
commit
a24b1e14b1
1 ficheiros alterados com 1 adições e 1 exclusões
  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 = [])