UselessCastRule
in package
implements
Rule
Interfaces, Classes, Traits and Enums
- Rule
Table of Contents
- $treatPhpDocTypesAsCertain : bool
- __construct() : mixed
- getNodeType() : string
- processNode() : array<string|int, RuleError>
Properties
$treatPhpDocTypesAsCertain
private
bool
$treatPhpDocTypesAsCertain
Methods
__construct()
public
__construct(bool $treatPhpDocTypesAsCertain) : mixed
Parameters
- $treatPhpDocTypesAsCertain : bool
Return values
mixed —getNodeType()
public
getNodeType() : string
Return values
string —processNode()
public
processNode(Cast $node, Scope $scope) : array<string|int, RuleError>
Parameters
- $node : Cast
- $scope : Scope
Return values
array<string|int, RuleError> —errors