Skip to content

Commit 67d2e4b

Browse files
committed
[FrameworkBundle] added type-hints on private methods
1 parent 5ca1ecd commit 67d2e4b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CacheWarmer/AnnotationsCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ protected function doWarmUp($cacheDir, ArrayAdapter $arrayAdapter)
8585
return true;
8686
}
8787

88-
private function readAllComponents(Reader $reader, $class)
88+
private function readAllComponents(Reader $reader, string $class)
8989
{
9090
$reflectionClass = new \ReflectionClass($class);
9191
$reader->getClassAnnotations($reflectionClass);

FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function build(ContainerBuilder $container)
141141
}
142142
}
143143

144-
private function addCompilerPassIfExists(ContainerBuilder $container, $class, $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, $priority = 0)
144+
private function addCompilerPassIfExists(ContainerBuilder $container, string $class, string $type = PassConfig::TYPE_BEFORE_OPTIMIZATION, int $priority = 0)
145145
{
146146
$container->addResource(new ClassExistenceResource($class));
147147

0 commit comments

Comments
 (0)