mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
Merge pull request #8117 from BenMorel/reflectionclass_isenum
Add ReflectionClass & ReflectionObject::isEnum()
This commit is contained in:
commit
00c0c0eaac
@ -11354,6 +11354,7 @@ return [
|
||||
'ReflectionClass::isAbstract' => ['bool'],
|
||||
'ReflectionClass::isAnonymous' => ['bool'],
|
||||
'ReflectionClass::isCloneable' => ['bool'],
|
||||
'ReflectionClass::isEnum' => ['bool'],
|
||||
'ReflectionClass::isFinal' => ['bool'],
|
||||
'ReflectionClass::isInstance' => ['bool', 'object'=>'object'],
|
||||
'ReflectionClass::isInstantiable' => ['bool'],
|
||||
@ -11560,6 +11561,7 @@ return [
|
||||
'ReflectionObject::isAbstract' => ['bool'],
|
||||
'ReflectionObject::isAnonymous' => ['bool'],
|
||||
'ReflectionObject::isCloneable' => ['bool'],
|
||||
'ReflectionObject::isEnum' => ['bool'],
|
||||
'ReflectionObject::isFinal' => ['bool'],
|
||||
'ReflectionObject::isInstance' => ['bool', 'object'=>'object'],
|
||||
'ReflectionObject::isInstantiable' => ['bool'],
|
||||
|
@ -37,6 +37,7 @@ return [
|
||||
'Fiber::getCurrent' => ['?self'],
|
||||
'Fiber::suspend' => ['mixed', 'value='=>'null|mixed'],
|
||||
'FiberError::__construct' => ['void'],
|
||||
'ReflectionClass::isEnum' => ['bool'],
|
||||
'ReflectionEnum::getBackingType' => ['?ReflectionType'],
|
||||
'ReflectionEnum::getCase' => ['ReflectionEnumUnitCase', 'name' => 'string'],
|
||||
'ReflectionEnum::getCases' => ['list<ReflectionEnumUnitCase>'],
|
||||
@ -46,6 +47,7 @@ return [
|
||||
'ReflectionEnumUnitCase::getValue' => ['UnitEnum'],
|
||||
'ReflectionEnumBackedCase::getBackingValue' => ['string|int'],
|
||||
'ReflectionFunctionAbstract::isStatic' => ['bool'],
|
||||
'ReflectionObject::isEnum' => ['bool'],
|
||||
],
|
||||
|
||||
'changed' => [
|
||||
|
Loading…
x
Reference in New Issue
Block a user