Documentation

DisallowEnumComparisonRule
in package
implements Rule

Tags
phpstan-implements

Rule<BinaryOp>

Interfaces, Classes, Traits and Enums

Rule

Table of Contents

getNodeType()  : string
processNode()  : array<string|int, mixed>
checkForEnumTypes()  : bool

Methods

processNode()

public processNode(Node $node, Scope $scope) : array<string|int, mixed>
Parameters
$node : Node
$scope : Scope
Return values
array<string|int, mixed>

checkForEnumTypes()

private checkForEnumTypes(Type $comparedType) : bool
Parameters
$comparedType : Type
Return values
bool

Search results