class UnsupportedCallRule implements Rule

internal  
 

Reports calls that reach a method marked #[Unsupported], which always throws.

The attribute's message goes in the error message rather than a tip, because several output formats drop tips.

Methods

__construct(ReflectionProvider $reflectionProvider, FacadeHelper $facadeHelper)

Create a new unsupported call rule instance.

string
getNodeType()

Get the node type the rule checks.

array
processNode(Node $node, Scope $scope)

Report each unsupported method the call can run.

Details

at line 45
__construct(ReflectionProvider $reflectionProvider, FacadeHelper $facadeHelper)

Create a new unsupported call rule instance.

Parameters

ReflectionProvider $reflectionProvider
FacadeHelper $facadeHelper

at line 54
string getNodeType()

Get the node type the rule checks.

Return Value

string

at line 67
array processNode(Node $node, Scope $scope)

Report each unsupported method the call can run.

Parameters

Node $node
Scope $scope

Return Value

array