Skip to content

Commit

Permalink
Fix return type of ReflectionEnum::getBackingType with PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
M393 committed Oct 21, 2024
1 parent 0f796f1 commit 523b564
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dictionaries/CallMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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<ReflectionEnumUnitCase>'],
'ReflectionEnum::hasCase' => ['bool', 'name' => 'string'],
Expand Down
4 changes: 4 additions & 0 deletions dictionaries/CallMap_82_delta.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' => [
Expand Down

0 comments on commit 523b564

Please sign in to comment.