Skip to content

Commit 9a39dcd

Browse files
wouterjnicolas-grekas
authored andcommitted
Add void return types
1 parent 9efa58c commit 9a39dcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DebugClassLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ private function normalizeType(string $type, string $class, ?string $parent, ?\R
930930
/**
931931
* Utility method to add #[ReturnTypeWillChange] where php triggers deprecations.
932932
*/
933-
private function patchReturnTypeWillChange(\ReflectionMethod $method)
933+
private function patchReturnTypeWillChange(\ReflectionMethod $method): void
934934
{
935935
if (\count($method->getAttributes(\ReturnTypeWillChange::class))) {
936936
return;
@@ -958,7 +958,7 @@ private function patchReturnTypeWillChange(\ReflectionMethod $method)
958958
/**
959959
* Utility method to add @return annotations to the Symfony code-base where it triggers self-deprecations.
960960
*/
961-
private function patchMethod(\ReflectionMethod $method, string $returnType, string $declaringFile, string $normalizedType)
961+
private function patchMethod(\ReflectionMethod $method, string $returnType, string $declaringFile, string $normalizedType): void
962962
{
963963
static $patchedMethods = [];
964964
static $useStatements = [];
@@ -1097,7 +1097,7 @@ private static function getUseStatements(string $file): array
10971097
return [$namespace, $useOffset, $useMap];
10981098
}
10991099

1100-
private function fixReturnStatements(\ReflectionMethod $method, string $returnType)
1100+
private function fixReturnStatements(\ReflectionMethod $method, string $returnType): void
11011101
{
11021102
if ('docblock' !== $this->patchTypes['force']) {
11031103
if ('7.1' === $this->patchTypes['php'] && 'object' === ltrim($returnType, '?')) {

0 commit comments

Comments
 (0)