From 523b56497701fc496af94a5d9baa29d7ff65a61b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Mon, 21 Oct 2024 18:59:38 +0200 Subject: [PATCH] Fix return type of ReflectionEnum::getBackingType with PHP 8.2 --- dictionaries/CallMap.php | 2 +- dictionaries/CallMap_82_delta.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 48e23a2c603..b7c9a9d6f90 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -10429,7 +10429,7 @@ 'ReflectionClassConstant::isPrivate' => ['bool'], 'ReflectionClassConstant::isProtected' => ['bool'], 'ReflectionClassConstant::isPublic' => ['bool'], -'ReflectionEnum::getBackingType' => ['?ReflectionType'], +'ReflectionEnum::getBackingType' => ['?ReflectionNamedType'], 'ReflectionEnum::getCase' => ['ReflectionEnumUnitCase', 'name' => 'string'], 'ReflectionEnum::getCases' => ['list'], 'ReflectionEnum::hasCase' => ['bool', 'name' => 'string'], diff --git a/dictionaries/CallMap_82_delta.php b/dictionaries/CallMap_82_delta.php index 38dad00278b..bfbc6caba4f 100644 --- a/dictionaries/CallMap_82_delta.php +++ b/dictionaries/CallMap_82_delta.php @@ -81,6 +81,10 @@ 'old' => ['int', 'string1'=>'string', 'string2'=>'string', 'length'=>'int'], 'new' => ['int<-1,1>', 'string1' => 'string', 'string2' => 'string', 'length'=>'positive-int|0'], ], + 'ReflectionEnum::getBackingType' => [ + 'old' => ['?ReflectionType'], + 'new' => ['?ReflectionNamedType'], + ], ], 'removed' => [