[FrameworkBundle] added type-hints on private methods
This commit is contained in:
parent
9595503b8f
commit
da54325136
@ -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);
|
||||
|
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user