This commit is contained in:
Guilhem Niot 2020-12-10 22:30:50 +01:00
parent 6d995a6e03
commit 0a3785fd26
4 changed files with 6 additions and 4 deletions

View File

@ -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 private function matchAnnotation(Route $route): bool

View File

@ -18,5 +18,7 @@ class Bar
{ {
public $things; public $things;
public function addThing(array $thing) { } public function addThing(array $thing)
{
}
} }

View File

@ -254,6 +254,6 @@ class FilteredRouteCollectionBuilderTest extends TestCase
); );
} }
return new ControllerReflector(new Container()); return new ControllerReflector(new Container());
} }
} }

View File

@ -20,7 +20,7 @@ use Nelmio\ApiDocBundle\Model\ModelRegistry;
use Nelmio\ApiDocBundle\ModelDescriber\ModelDescriberInterface; use Nelmio\ApiDocBundle\ModelDescriber\ModelDescriberInterface;
use Nelmio\ApiDocBundle\SwaggerPhp\ModelRegister; use Nelmio\ApiDocBundle\SwaggerPhp\ModelRegister;
use PHPUnit\Framework\TestCase; use PHPUnit\Framework\TestCase;
use Swagger\Analysis; use Swagger\Analysis;
use Swagger\Annotations as SWG; use Swagger\Annotations as SWG;
class ModelRegisterTest extends TestCase class ModelRegisterTest extends TestCase