Skip to content

Commit ab60d07

Browse files
committed
Add types to private and final methods.
1 parent e6825ca commit ab60d07

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CacheWarmer/AbstractPhpFileCacheWarmer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function warmUpPhpArrayAdapter(PhpArrayAdapter $phpArrayAdapter, array
7272
/**
7373
* @internal
7474
*/
75-
final protected function ignoreAutoloadException($class, \Exception $exception)
75+
final protected function ignoreAutoloadException(string $class, \Exception $exception): void
7676
{
7777
try {
7878
ClassExistenceResource::throwOnRequiredClass($class, $exception);

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,7 @@ private function registerAssetsConfiguration(array $config, ContainerBuilder $co
10691069
/**
10701070
* Returns a definition for an asset package.
10711071
*/
1072-
private function createPackageDefinition(?string $basePath, array $baseUrls, Reference $version)
1072+
private function createPackageDefinition(?string $basePath, array $baseUrls, Reference $version): Definition
10731073
{
10741074
if ($basePath && $baseUrls) {
10751075
throw new \LogicException('An asset package cannot have base URLs and base paths.');
@@ -1085,7 +1085,7 @@ private function createPackageDefinition(?string $basePath, array $baseUrls, Ref
10851085
return $package;
10861086
}
10871087

1088-
private function createVersion(ContainerBuilder $container, ?string $version, ?string $format, ?string $jsonManifestPath, string $name)
1088+
private function createVersion(ContainerBuilder $container, ?string $version, ?string $format, ?string $jsonManifestPath, string $name): Reference
10891089
{
10901090
// Configuration prevents $version and $jsonManifestPath from being set
10911091
if (null !== $version) {

0 commit comments

Comments
 (0)