From a51d16150d0aa5872d93cb5994a3667ce4dbeee9 Mon Sep 17 00:00:00 2001 From: orklah Date: Mon, 13 Dec 2021 23:35:48 +0100 Subject: [PATCH 1/3] fix CI --- dictionaries/CallMap.php | 2 +- dictionaries/CallMap_historical.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index e4695f2c742..361f361a5af 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -11460,6 +11460,7 @@ 'ReflectionFunctionAbstract::isDeprecated' => ['bool'], 'ReflectionFunctionAbstract::isGenerator' => ['bool'], 'ReflectionFunctionAbstract::isInternal' => ['bool'], +'ReflectionFunctionAbstract::isStatic' => ['bool'], 'ReflectionFunctionAbstract::isUserDefined' => ['bool'], 'ReflectionFunctionAbstract::isVariadic' => ['bool'], 'ReflectionFunctionAbstract::returnsReference' => ['bool'], @@ -11509,7 +11510,6 @@ 'ReflectionMethod::isPrivate' => ['bool'], 'ReflectionMethod::isProtected' => ['bool'], 'ReflectionMethod::isPublic' => ['bool'], -'ReflectionMethod::isStatic' => ['bool'], 'ReflectionMethod::isUserDefined' => ['bool'], 'ReflectionMethod::isVariadic' => ['bool'], 'ReflectionMethod::returnsReference' => ['bool'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index c69ed589017..862f1e8231e 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -6048,6 +6048,7 @@ 'ReflectionFunctionAbstract::isDeprecated' => ['bool'], 'ReflectionFunctionAbstract::isGenerator' => ['bool'], 'ReflectionFunctionAbstract::isInternal' => ['bool'], + 'ReflectionFunctionAbstract::isStatic' => ['bool'], 'ReflectionFunctionAbstract::isUserDefined' => ['bool'], 'ReflectionFunctionAbstract::isVariadic' => ['bool'], 'ReflectionFunctionAbstract::returnsReference' => ['bool'], @@ -6097,7 +6098,6 @@ 'ReflectionMethod::isPrivate' => ['bool'], 'ReflectionMethod::isProtected' => ['bool'], 'ReflectionMethod::isPublic' => ['bool'], - 'ReflectionMethod::isStatic' => ['bool'], 'ReflectionMethod::isUserDefined' => ['bool'], 'ReflectionMethod::isVariadic' => ['bool'], 'ReflectionMethod::returnsReference' => ['bool'], From dcb5234b6986bde1bbf08347f1b217b00524d893 Mon Sep 17 00:00:00 2001 From: orklah Date: Tue, 14 Dec 2021 18:30:31 +0100 Subject: [PATCH 2/3] remove ReflectionMethod::isStatic and add ReflectionFunctionAbstract::isStatic in 8.1 --- dictionaries/CallMap_81_delta.php | 5 ++++- dictionaries/CallMap_historical.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/dictionaries/CallMap_81_delta.php b/dictionaries/CallMap_81_delta.php index efa975bd3fc..1854a0a71d3 100644 --- a/dictionaries/CallMap_81_delta.php +++ b/dictionaries/CallMap_81_delta.php @@ -45,6 +45,7 @@ 'ReflectionEnumUnitCase::getEnum' => ['ReflectionEnum'], 'ReflectionEnumUnitCase::getValue' => ['UnitEnum'], 'ReflectionEnumBackedCase::getBackingValue' => ['string|int'], + 'ReflectionFunctionAbstract::isStatic' => ['bool'], ], 'changed' => [ @@ -1106,5 +1107,7 @@ ], ], - 'removed' => [], + 'removed' => [ + 'ReflectionMethod::isStatic' => ['bool'], + ], ]; diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index 862f1e8231e..c69ed589017 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -6048,7 +6048,6 @@ 'ReflectionFunctionAbstract::isDeprecated' => ['bool'], 'ReflectionFunctionAbstract::isGenerator' => ['bool'], 'ReflectionFunctionAbstract::isInternal' => ['bool'], - 'ReflectionFunctionAbstract::isStatic' => ['bool'], 'ReflectionFunctionAbstract::isUserDefined' => ['bool'], 'ReflectionFunctionAbstract::isVariadic' => ['bool'], 'ReflectionFunctionAbstract::returnsReference' => ['bool'], @@ -6098,6 +6097,7 @@ 'ReflectionMethod::isPrivate' => ['bool'], 'ReflectionMethod::isProtected' => ['bool'], 'ReflectionMethod::isPublic' => ['bool'], + 'ReflectionMethod::isStatic' => ['bool'], 'ReflectionMethod::isUserDefined' => ['bool'], 'ReflectionMethod::isVariadic' => ['bool'], 'ReflectionMethod::returnsReference' => ['bool'], From 93689c28603665ceaae048655cb3c177b9998986 Mon Sep 17 00:00:00 2001 From: orklah Date: Tue, 14 Dec 2021 20:04:33 +0100 Subject: [PATCH 3/3] add isStatic in stubs to solve the issue --- stubs/Reflection.phpstub | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stubs/Reflection.phpstub b/stubs/Reflection.phpstub index 6635570394b..11dcf4537e2 100644 --- a/stubs/Reflection.phpstub +++ b/stubs/Reflection.phpstub @@ -99,6 +99,8 @@ class ReflectionMethod implements Reflector * @return array> */ public function getAttributes(?string $name = null, int $flags = 0): array {} + + public function isStatic(): bool {} } class ReflectionClassConstant