@@ -930,7 +930,7 @@ private function normalizeType(string $type, string $class, ?string $parent, ?\R
930
930
/**
931
931
* Utility method to add #[ReturnTypeWillChange] where php triggers deprecations.
932
932
*/
933
- private function patchReturnTypeWillChange (\ReflectionMethod $ method )
933
+ private function patchReturnTypeWillChange (\ReflectionMethod $ method ): void
934
934
{
935
935
if (\count ($ method ->getAttributes (\ReturnTypeWillChange::class))) {
936
936
return ;
@@ -958,7 +958,7 @@ private function patchReturnTypeWillChange(\ReflectionMethod $method)
958
958
/**
959
959
* Utility method to add @return annotations to the Symfony code-base where it triggers self-deprecations.
960
960
*/
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
962
962
{
963
963
static $ patchedMethods = [];
964
964
static $ useStatements = [];
@@ -1097,7 +1097,7 @@ private static function getUseStatements(string $file): array
1097
1097
return [$ namespace , $ useOffset , $ useMap ];
1098
1098
}
1099
1099
1100
- private function fixReturnStatements (\ReflectionMethod $ method , string $ returnType )
1100
+ private function fixReturnStatements (\ReflectionMethod $ method , string $ returnType ): void
1101
1101
{
1102
1102
if ('docblock ' !== $ this ->patchTypes ['force ' ]) {
1103
1103
if ('7.1 ' === $ this ->patchTypes ['php ' ] && 'object ' === ltrim ($ returnType , '? ' )) {
0 commit comments