Documentation

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

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

Search results