ArrPullParameterOutTypeExtension
class ArrPullParameterOutTypeExtension implements StaticMethodParameterOutTypeExtension
| internal |
Removes the pulled key from the array passed by reference to Arr::pull().
Keys in "dot" notation keep the declared type unless the literal key always exists.
Methods
bool
isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)
Determine whether the parameter is the array of Arr::pull().
Type|null
getParameterOutTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope)
Get the array type without the pulled key.
Details
at line 32
bool
isStaticMethodSupported(MethodReflection $methodReflection, ParameterReflection $parameter)
Determine whether the parameter is the array of Arr::pull().
at line 42
Type|null
getParameterOutTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, ParameterReflection $parameter, Scope $scope)
Get the array type without the pulled key.