diff --git a/Routing/FilteredRouteCollectionBuilder.php b/Routing/FilteredRouteCollectionBuilder.php index a0a81ce..7e989ee 100644 --- a/Routing/FilteredRouteCollectionBuilder.php +++ b/Routing/FilteredRouteCollectionBuilder.php @@ -111,7 +111,7 @@ final class FilteredRouteCollectionBuilder } } - return 0 === count($this->options['name_patterns']); + return 0 === count($this->options['name_patterns']); } private function matchAnnotation(Route $route): bool diff --git a/Tests/Functional/Entity/ArrayItemsError/Bar.php b/Tests/Functional/Entity/ArrayItemsError/Bar.php index 214e99f..d5e7433 100644 --- a/Tests/Functional/Entity/ArrayItemsError/Bar.php +++ b/Tests/Functional/Entity/ArrayItemsError/Bar.php @@ -18,5 +18,7 @@ class Bar { public $things; - public function addThing(array $thing) { } + public function addThing(array $thing) + { + } } diff --git a/Tests/Routing/FilteredRouteCollectionBuilderTest.php b/Tests/Routing/FilteredRouteCollectionBuilderTest.php index c2a152b..028c646 100644 --- a/Tests/Routing/FilteredRouteCollectionBuilderTest.php +++ b/Tests/Routing/FilteredRouteCollectionBuilderTest.php @@ -255,6 +255,6 @@ class FilteredRouteCollectionBuilderTest extends TestCase ); } - return new ControllerReflector(new Container()); + return new ControllerReflector(new Container()); } }