[FrameworkBundle] added type-hints on private methods

This commit is contained in:
Fabien Potencier 2019-07-27 08:35:12 +02:00
parent 9595503b8f
commit da54325136
2 changed files with 2 additions and 2 deletions

View File

@ -85,7 +85,7 @@ class AnnotationsCacheWarmer extends AbstractPhpFileCacheWarmer
return true;
}
private function readAllComponents(Reader $reader, $class)
private function readAllComponents(Reader $reader, string $class)
{
$reflectionClass = new \ReflectionClass($class);
$reader->getClassAnnotations($reflectionClass);

View File

@ -141,7 +141,7 @@ class FrameworkBundle extends Bundle
}
}
private function addCompilerPassIfExists(ContainerBuilder $container, $class, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, $priority = 0)
private function addCompilerPassIfExists(ContainerBuilder $container, string $class, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
{
$container->addResource(new ClassExistenceResource($class));