Skip to content

Commit bfd6afa

Browse files
authored
Update Strategy.php
Allow strategy to return null as a result of not applied strategy
1 parent 4082fb4 commit bfd6afa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Extracting/Strategies/Strategy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(string $stage, DocumentationConfig $config)
3434
*
3535
* @throws \Exception
3636
*
37-
* @return array
37+
* @return array|null
3838
*/
3939
abstract public function __invoke(Route $route, ReflectionClass $controller, ReflectionMethod $method, array $routeRules, array $context = []);
4040
}

0 commit comments

Comments
 (0)