class ExactCancellationCheckRule implements Rule

Reports instanceof CanceledException checks, which miss cancellation carried by another exception.

Methods

__construct(CoroutineRuleHelper $coroutineRuleHelper)

Create a new exact cancellation check rule instance.

string
getNodeType()

Get the node type the rule checks.

array
processNode(Node $node, Scope $scope)

Report exact cancellation checks of values that may be exceptions but are not already known to be cancellations.

Details

at line 32
__construct(CoroutineRuleHelper $coroutineRuleHelper)

Create a new exact cancellation check rule instance.

Parameters

CoroutineRuleHelper $coroutineRuleHelper

at line 40
string getNodeType()

Get the node type the rule checks.

Return Value

string

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

Report exact cancellation checks of values that may be exceptions but are not already known to be cancellations.

Parameters

Node $node
Scope $scope

Return Value

array