mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
Improve Reflection class method return types
This commit is contained in:
parent
5995de0c9f
commit
eefa4f925f
@ -7684,7 +7684,7 @@ return [
|
||||
'ReflectionFunctionAbstract::__toString' => [''],
|
||||
'ReflectionFunction::__construct' => ['void', 'name'=>'string|Closure'],
|
||||
'ReflectionFunction::export' => ['string', 'name'=>'string', 'return='=>'bool'],
|
||||
'ReflectionFunction::getClosure' => ['Closure'],
|
||||
'ReflectionFunction::getClosure' => ['?Closure'],
|
||||
'ReflectionFunction::getClosureScopeClass' => ['ReflectionClass'],
|
||||
'ReflectionFunction::getClosureThis' => ['bool'],
|
||||
'ReflectionFunction::getDocComment' => ['string|false'],
|
||||
@ -7724,7 +7724,7 @@ return [
|
||||
'ReflectionMethod::__construct' => ['void', 'class'=>'string|object', 'name'=>'string'],
|
||||
'ReflectionMethod::__construct\'1' => ['ReflectionMethod', 'class_method'=>'string'],
|
||||
'ReflectionMethod::export' => ['string', 'class'=>'', 'name'=>'string', 'return='=>'bool'],
|
||||
'ReflectionMethod::getClosure' => ['Closure', 'object'=>'?object'],
|
||||
'ReflectionMethod::getClosure' => ['?Closure', 'object'=>'?object'],
|
||||
'ReflectionMethod::getDeclaringClass' => ['ReflectionClass'],
|
||||
'ReflectionMethod::getModifiers' => ['int'],
|
||||
'ReflectionMethod::getPrototype' => ['ReflectionMethod'],
|
||||
@ -7738,7 +7738,7 @@ return [
|
||||
'ReflectionMethod::isProtected' => ['bool'],
|
||||
'ReflectionMethod::isPublic' => ['bool'],
|
||||
'ReflectionMethod::isStatic' => ['bool'],
|
||||
'ReflectionMethod::setAccessible' => ['', 'visible'=>'bool'],
|
||||
'ReflectionMethod::setAccessible' => ['void', 'visible'=>'bool'],
|
||||
'ReflectionMethod::__toString' => ['string'],
|
||||
'ReflectionObject::__construct' => ['void', 'argument'=>''],
|
||||
'ReflectionObject::export' => ['', 'argument'=>'', 'return='=>'bool'],
|
||||
@ -7749,7 +7749,7 @@ return [
|
||||
'ReflectionParameter::export' => ['', 'function'=>'', 'parameter'=>'', 'return='=>'bool'],
|
||||
'ReflectionParameter::getClass' => ['ReflectionClass|NULL'],
|
||||
'ReflectionParameter::getDeclaringClass' => ['ReflectionClass|NULL'],
|
||||
'ReflectionParameter::getDeclaringFunction' => ['ReflectionFunction'],
|
||||
'ReflectionParameter::getDeclaringFunction' => ['ReflectionFunctionAbstract'],
|
||||
'ReflectionParameter::getDefaultValue' => ['bool'],
|
||||
'ReflectionParameter::getDefaultValueConstantName' => ['string'],
|
||||
'ReflectionParameter::getName' => ['string'],
|
||||
@ -7768,7 +7768,7 @@ return [
|
||||
'ReflectionProperty::__construct' => ['void', 'class'=>'', 'name'=>'string'],
|
||||
'ReflectionProperty::export' => ['string', 'class'=>'', 'name'=>'string', 'return='=>'bool'],
|
||||
'ReflectionProperty::getDeclaringClass' => ['ReflectionClass'],
|
||||
'ReflectionProperty::getDocComment' => ['string'],
|
||||
'ReflectionProperty::getDocComment' => ['string|false'],
|
||||
'ReflectionProperty::getModifiers' => ['int'],
|
||||
'ReflectionProperty::getName' => ['string'],
|
||||
'ReflectionProperty::getValue' => ['', 'object='=>'object'],
|
||||
@ -7778,8 +7778,8 @@ return [
|
||||
'ReflectionProperty::isPublic' => ['bool'],
|
||||
'ReflectionProperty::isStatic' => ['bool'],
|
||||
'ReflectionProperty::setAccessible' => ['int', 'visible'=>'bool'],
|
||||
'ReflectionProperty::setValue\'1' => ['', 'value'=>''],
|
||||
'ReflectionProperty::setValue' => ['', 'object'=>'object', 'value'=>''],
|
||||
'ReflectionProperty::setValue\'1' => ['void', 'value'=>''],
|
||||
'ReflectionProperty::setValue' => ['void', 'object'=>'object', 'value'=>''],
|
||||
'ReflectionProperty::__toString' => ['string'],
|
||||
'ReflectionType::allowsNull' => ['bool'],
|
||||
'ReflectionType::isBuiltin' => ['bool'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user