Skip to content

Commit efacc03

Browse files
committed
use precise types
1 parent 62da1c0 commit efacc03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

config/set/downgrade-php81.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040

4141
// @see https://php.watch/versions/8.1/internal-method-return-types#reflection
4242
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
43-
new MethodCallRename('ReflectionFunctionAbstract', 'hasTentativeReturnType', 'hasReturnType'),
44-
new MethodCallRename('ReflectionFunctionAbstract', 'getTentativeReturnType', 'getReturnType'),
43+
new MethodCallRename('ReflectionFunction', 'hasTentativeReturnType', 'hasReturnType'),
44+
new MethodCallRename('ReflectionFunction', 'getTentativeReturnType', 'getReturnType'),
45+
new MethodCallRename('ReflectionMethod', 'hasTentativeReturnType', 'hasReturnType'),
46+
new MethodCallRename('ReflectionMethod', 'getTentativeReturnType', 'getReturnType'),
4547
]);
4648

4749
$rectorConfig->ruleWithConfiguration(RenameFunctionRector::class, [

0 commit comments

Comments
 (0)