Interface PHPStan\Rules\Rule

<TNodeType is Node>

  • PHPStan\Rules\Rule
    • PHPStan\Rules\Arrays\OffsetAccessWithoutDimForReadingRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\InvalidKeyInArrayItemRule implements Rule<ArrayItem>
    • PHPStan\Rules\Arrays\DuplicateKeysInLiteralArraysRule implements Rule<LiteralArrayNode>
    • PHPStan\Rules\Arrays\DeadForeachRule implements Rule<Foreach_>
    • PHPStan\Rules\Arrays\OffsetAccessAssignmentRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\EmptyArrayItemRule implements Rule<LiteralArrayNode>
    • PHPStan\Rules\Arrays\ArrayUnpackingRule implements Rule<ArrayItem>
    • PHPStan\Rules\Arrays\AppendedArrayKeyTypeRule implements Rule<Assign>
    • PHPStan\Rules\Arrays\OffsetAccessValueAssignmentRule implements Rule<Expr>
    • PHPStan\Rules\Arrays\UnpackIterableInArrayRule implements Rule<LiteralArrayNode>
    • PHPStan\Rules\Arrays\OffsetAccessAssignOpRule implements Rule<AssignOp>
    • PHPStan\Rules\Arrays\InvalidKeyInArrayDimFetchRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\ArrayDestructuringRule implements Rule<Assign>
    • PHPStan\Rules\Arrays\AppendedArrayItemTypeRule implements Rule<Expr>
    • PHPStan\Rules\Arrays\NonexistentOffsetInArrayDimFetchRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\IterableInForeachRule implements Rule<InForeachNode>
    • PHPStan\Rules\Keywords\ContinueBreakInLoopRule implements Rule<Stmt>
    • PHPStan\Rules\Variables\NullCoalesceRule implements Rule<Expr>
    • PHPStan\Rules\Variables\UnsetRule implements Rule<Unset_>
    • PHPStan\Rules\Variables\VariableCloningRule implements Rule<Clone_>
    • PHPStan\Rules\Variables\DefinedVariableRule implements Rule<Variable>
    • PHPStan\Rules\Variables\ThrowTypeRule implements Rule<Throw_>
    • PHPStan\Rules\Variables\CompactVariablesRule implements Rule<FuncCall>
    • PHPStan\Rules\Variables\IssetRule implements Rule<Isset_>
    • PHPStan\Rules\Variables\EmptyRule implements Rule<Empty_>
    • PHPStan\Rules\TooWideTypehints\TooWideMethodReturnTypehintRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWideFunctionReturnTypehintRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWideClosureReturnTypehintRule implements Rule<ClosureReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWideArrowFunctionReturnTypehintRule implements Rule<InArrowFunctionNode>
    • PHPStan\Rules\DateTimeInstantiationRule implements Rule<New_>
    • PHPStan\Rules\Functions\DefineParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ArrayFilterRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ExistingClassesInArrowFunctionTypehintsRule implements Rule<ArrowFunction>
    • PHPStan\Rules\Functions\IncompatibleDefaultParameterTypeRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\CallToFunctionParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ArrowFunctionAttributesRule implements Rule<ArrowFunction>
    • PHPStan\Rules\Functions\ClosureReturnTypeRule implements Rule<ClosureReturnStatementsNode>
    • PHPStan\Rules\Functions\DuplicateFunctionDeclarationRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\UnusedClosureUsesRule implements Rule<Closure>
    • PHPStan\Rules\Functions\ArrowFunctionReturnTypeRule implements Rule<InArrowFunctionNode>
    • PHPStan\Rules\Functions\FunctionCallableRule implements Rule<FunctionCallableNode>
    • PHPStan\Rules\Functions\ReturnNullsafeByRefRule implements Rule<ReturnStatementsNode>
    • PHPStan\Rules\Functions\ArrowFunctionReturnNullsafeByRefRule implements Rule<ArrowFunction>
    • PHPStan\Rules\Functions\InnerFunctionRule implements Rule<Function_>
    • PHPStan\Rules\Functions\ParamAttributesRule implements Rule<Param>
    • PHPStan\Rules\Functions\CallToFunctionStatementWithoutSideEffectsRule implements Rule<Expression>
    • PHPStan\Rules\Functions\CallCallablesRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\RandomIntParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ReturnTypeRule implements Rule<Return_>
    • PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\FunctionAttributesRule implements Rule<Function_>
    • PHPStan\Rules\Functions\ImplodeFunctionRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ExistingClassesInClosureTypehintsRule implements Rule<Closure>
    • PHPStan\Rules\Functions\ExistingClassesInTypehintsRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\PrintfParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\CallToNonExistentFunctionRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ClosureAttributesRule implements Rule<Closure>
    • PHPStan\Rules\DeadCode\UnusedPrivateConstantRule implements Rule<ClassConstantsNode>
    • PHPStan\Rules\DeadCode\UnusedPrivatePropertyRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\DeadCode\NoopRule implements Rule<Expression>
    • PHPStan\Rules\DeadCode\UnusedPrivateMethodRule implements Rule<ClassMethodsNode>
    • PHPStan\Rules\DeadCode\UnreachableStatementRule implements Rule<UnreachableStatementNode>
    • PHPStan\Rules\Whitespace\FileWhitespaceRule implements Rule<FileNode>
    • PHPStan\Rules\EnumCases\EnumCaseAttributesRule implements Rule<EnumCase>
    • PHPStan\Rules\Exceptions\MissingCheckedExceptionInFunctionThrowsRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Exceptions\CatchWithUnthrownExceptionRule implements Rule<CatchWithUnthrownExceptionNode>
    • PHPStan\Rules\Exceptions\ThrowsVoidMethodWithExplicitThrowPointRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Exceptions\MissingCheckedExceptionInMethodThrowsRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Exceptions\ThrowExpressionRule implements Rule<Throw_>
    • PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Exceptions\CaughtExceptionExistenceRule implements Rule<Catch_>
    • PHPStan\Rules\Exceptions\OverwrittenExitPointByFinallyRule implements Rule<FinallyExitPointsNode>
    • PHPStan\Rules\Exceptions\ThrowsVoidFunctionWithExplicitThrowPointRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\PhpDoc\InvalidPhpDocVarTagTypeRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\FunctionAssertRule implements Rule<InFunctionNode>
    • PHPStan\Rules\PhpDoc\InvalidPHPStanDocTagRule implements Rule<Node>
    • PHPStan\Rules\PhpDoc\IncompatibleSelfOutTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\PhpDoc\IncompatiblePropertyPhpDocTypeRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\PhpDoc\IncompatiblePhpDocTypeRule implements Rule<FunctionLike>
    • PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRule implements Rule<Node>
    • PHPStan\Rules\PhpDoc\WrongVariableNameInVarTagRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\MethodConditionalReturnTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\PhpDoc\IncompatibleClassConstantPhpDocTypeRule implements Rule<ClassConst>
    • PHPStan\Rules\PhpDoc\MethodAssertRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\PhpDoc\InvalidThrowsPhpDocValueRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\FunctionConditionalReturnTypeRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Classes\ImpossibleInstanceOfRule implements Rule<Instanceof_>
    • PHPStan\Rules\Classes\ClassAttributesRule implements Rule<ClassLike>
    • PHPStan\Rules\Classes\MixinRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\AllowedSubTypesRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ExistingClassesInClassImplementsRule implements Rule<Class_>
    • PHPStan\Rules\Classes\DuplicateClassDeclarationRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ExistingClassesInInterfaceExtendsRule implements Rule<Interface_>
    • PHPStan\Rules\Classes\InstantiationRule implements Rule<New_>
    • PHPStan\Rules\Classes\UnusedConstructorParametersRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Classes\LocalTypeAliasesRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\EnumSanityRule implements Rule<Enum_>
    • PHPStan\Rules\Classes\ExistingClassInInstanceOfRule implements Rule<Instanceof_>
    • PHPStan\Rules\Classes\NonClassAttributeClassRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ExistingClassInTraitUseRule implements Rule<TraitUse>
    • PHPStan\Rules\Classes\DuplicateDeclarationRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ExistingClassInClassExtendsRule implements Rule<Class_>
    • PHPStan\Rules\Classes\AccessPrivateConstantThroughStaticRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Classes\ClassConstantRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Classes\TraitAttributeClassRule implements Rule<Trait_>
    • PHPStan\Rules\Classes\NewStaticRule implements Rule<New_>
    • PHPStan\Rules\Classes\ExistingClassesInEnumImplementsRule implements Rule<Enum_>
    • PHPStan\Rules\Classes\InvalidPromotedPropertiesRule implements Rule<Node>
    • PHPStan\Rules\Classes\ClassConstantAttributesRule implements Rule<ClassConst>
    • PHPStan\Rules\Classes\InstantiationCallableRule implements Rule<InstantiationCallableNode>
    • PHPStan\Rules\Generators\YieldTypeRule implements Rule<Yield_>
    • PHPStan\Rules\Generators\YieldInGeneratorRule implements Rule<Expr>
    • PHPStan\Rules\Generators\YieldFromTypeRule implements Rule<YieldFrom>
    • PHPStan\Rules\Missing\MissingReturnRule implements Rule<ExecutionEndNode>
    • PHPStan\Rules\Regexp\RegularExpressionPatternRule implements Rule<FuncCall>
    • PHPStan\Rules\Generics\TraitTemplateTypeRule implements Rule<Trait_>
    • PHPStan\Rules\Generics\EnumAncestorsRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\EnumTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\ClassAncestorsRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\FunctionTemplateTypeRule implements Rule<Function_>
    • PHPStan\Rules\Generics\UsedTraitsRule implements Rule<TraitUse>
    • PHPStan\Rules\Generics\InterfaceTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\MethodSignatureVarianceRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Generics\MethodTemplateTypeRule implements Rule<ClassMethod>
    • PHPStan\Rules\Generics\FunctionSignatureVarianceRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Generics\InterfaceAncestorsRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\ClassTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Namespaces\ExistingNamesInUseRule implements Rule<Use_>
    • PHPStan\Rules\Namespaces\ExistingNamesInGroupUseRule implements Rule<GroupUse>
    • PHPStan\Rules\Properties\MissingReadOnlyPropertyAssignRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\Properties\PropertyAttributesRule implements Rule<Property>
    • PHPStan\Rules\Properties\AccessStaticPropertiesInAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\ReadOnlyPropertyAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\UninitializedPropertyRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\Properties\MissingPropertyTypehintRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\TypesAssignedToPropertiesRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\AccessPrivatePropertyThroughStaticRule implements Rule<StaticPropertyFetch>
    • PHPStan\Rules\Properties\OverridingPropertyRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\ReadOnlyPropertyRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\ReadOnlyPropertyAssignRefRule implements Rule<AssignRef>
    • PHPStan\Rules\Properties\AccessPropertiesRule implements Rule<PropertyFetch>
    • PHPStan\Rules\Properties\AccessPropertiesInAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRefRule implements Rule<AssignRef>
    • PHPStan\Rules\Properties\NullsafePropertyFetchRule implements Rule<NullsafePropertyFetch>
    • PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\AccessStaticPropertiesRule implements Rule<StaticPropertyFetch>
    • PHPStan\Rules\Properties\ReadingWriteOnlyPropertiesRule implements Rule<Expr>
    • PHPStan\Rules\Properties\ExistingClassesInPropertiesRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\WritingToReadOnlyPropertiesRule implements Rule<Expr>
    • PHPStan\Rules\Properties\DefaultValueTypesAssignedToPropertiesRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\MissingReadOnlyByPhpDocPropertyAssignRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Constants\MissingClassConstantTypehintRule implements Rule<ClassConst>
    • PHPStan\Rules\Constants\FinalConstantRule implements Rule<ClassConst>
    • PHPStan\Rules\Constants\ConstantRule implements Rule<ConstFetch>
    • PHPStan\Rules\Constants\OverridingConstantRule implements Rule<ClassConst>
    • PHPStan\Rules\Debug\FileAssertRule implements Rule<FuncCall>
    • PHPStan\Rules\Debug\DumpTypeRule implements Rule<FuncCall>
    • PHPStan\Rules\Cast\InvalidPartOfEncapsedStringRule implements Rule<Encapsed>
    • PHPStan\Rules\Cast\InvalidCastRule implements Rule<Cast>
    • PHPStan\Rules\Cast\PrintRule implements Rule<Print_>
    • PHPStan\Rules\Cast\EchoRule implements Rule<Echo_>
    • PHPStan\Rules\Cast\UnsetCastRule implements Rule<Unset_>
    • PHPStan\Rules\Traits\NotAnalysedTraitRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCallRule implements Rule<StaticCall>
    • PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule implements Rule<DoWhileLoopConditionNode>
    • PHPStan\Rules\Comparison\ImpossibleCheckTypeMethodCallRule implements Rule<MethodCall>
    • PHPStan\Rules\Comparison\UnreachableIfBranchesRule implements Rule<If_>
    • PHPStan\Rules\Comparison\UsageOfVoidMatchExpressionRule implements Rule<Match_>
    • PHPStan\Rules\Comparison\IfConstantConditionRule implements Rule<If_>
    • PHPStan\Rules\Comparison\ImpossibleCheckTypeFunctionCallRule implements Rule<FuncCall>
    • PHPStan\Rules\Comparison\TernaryOperatorConstantConditionRule implements Rule<Ternary>
    • PHPStan\Rules\Comparison\NumberComparisonOperatorsConstantConditionRule implements Rule<BinaryOp>
    • PHPStan\Rules\Comparison\BooleanNotConstantConditionRule implements Rule<BooleanNot>
    • PHPStan\Rules\Comparison\BooleanAndConstantConditionRule implements Rule<BooleanAndNode>
    • PHPStan\Rules\Comparison\ConstantLooseComparisonRule implements Rule<BinaryOp>
    • PHPStan\Rules\Comparison\WhileLoopAlwaysTrueConditionRule implements Rule<BreaklessWhileLoopNode>
    • PHPStan\Rules\Comparison\WhileLoopAlwaysFalseConditionRule implements Rule<While_>
    • PHPStan\Rules\Comparison\StrictComparisonOfDifferentTypesRule implements Rule<BinaryOp>
    • PHPStan\Rules\Comparison\ElseIfConstantConditionRule implements Rule<ElseIf_>
    • PHPStan\Rules\Comparison\MatchExpressionRule implements Rule<MatchExpressionNode>
    • PHPStan\Rules\Comparison\UnreachableTernaryElseBranchRule implements Rule<Ternary>
    • PHPStan\Rules\Comparison\BooleanOrConstantConditionRule implements Rule<BooleanOrNode>
    • PHPStan\Rules\Operators\InvalidBinaryOperationRule implements Rule<Expr>
    • PHPStan\Rules\Operators\InvalidComparisonOperationRule implements Rule<BinaryOp>
    • PHPStan\Rules\Operators\InvalidIncDecOperationRule implements Rule<Expr>
    • PHPStan\Rules\Operators\InvalidAssignVarRule implements Rule<Expr>
    • PHPStan\Rules\Operators\InvalidUnaryOperationRule implements Rule<Expr>
    • PHPStan\Rules\Methods\NullsafeMethodCallRule implements Rule<NullsafeMethodCall>
    • PHPStan\Rules\Methods\CallToMethodStatementWithoutSideEffectsRule implements Rule<Expression>
    • PHPStan\Rules\Methods\MissingMethodParameterTypehintRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\StaticMethodCallableRule implements Rule<StaticMethodCallableNode>
    • PHPStan\Rules\Methods\MissingMethodImplementationRule implements Rule<InClassNode>
    • PHPStan\Rules\Methods\IncompatibleDefaultParameterTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\OverridingMethodRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\ConsistentConstructorRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\CallPrivateMethodThroughStaticRule implements Rule<StaticCall>
    • PHPStan\Rules\Methods\MethodAttributesRule implements Rule<ClassMethod>
    • PHPStan\Rules\Methods\CallToStaticMethodStatementWithoutSideEffectsRule implements Rule<Expression>
    • PHPStan\Rules\Methods\IllegalConstructorStaticCallRule implements Rule<StaticCall>
    • PHPStan\Rules\Methods\IllegalConstructorMethodCallRule implements Rule<MethodCall>
    • PHPStan\Rules\Methods\MethodSignatureRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\CallMethodsRule implements Rule<MethodCall>
    • PHPStan\Rules\Methods\MissingMagicSerializationMethodsRule implements Rule<InClassNode>
    • PHPStan\Rules\Methods\MissingMethodReturnTypehintRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\CallStaticMethodsRule implements Rule<StaticCall>
    • PHPStan\Rules\Methods\ReturnTypeRule implements Rule<Return_>
    • PHPStan\Rules\Methods\AbstractMethodInNonAbstractClassRule implements Rule<ClassMethod>
    • PHPStan\Rules\Methods\MethodCallableRule implements Rule<MethodCallableNode>
    • PHPStan\Rules\Methods\CallToConstructorStatementWithoutSideEffectsRule implements Rule<Expression>
    • PHPStan\Rules\Methods\ExistingClassesInTypehintsRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\FinalPrivateMethodRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Api\RuntimeReflectionInstantiationRule implements Rule<New_>
    • PHPStan\Rules\Api\ApiInstanceofRule implements Rule<Instanceof_>
    • PHPStan\Rules\Api\ApiClassImplementsRule implements Rule<Class_>
    • PHPStan\Rules\Api\PhpStanNamespaceIn3rdPartyPackageRule implements Rule<Namespace_>
    • PHPStan\Rules\Api\ApiClassConstFetchRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Api\NodeConnectingVisitorAttributesRule implements Rule<MethodCall>
    • PHPStan\Rules\Api\ApiStaticCallRule implements Rule<StaticCall>
    • PHPStan\Rules\Api\RuntimeReflectionFunctionRule implements Rule<FuncCall>
    • PHPStan\Rules\Api\ApiTraitUseRule implements Rule<TraitUse>
    • PHPStan\Rules\Api\ApiMethodCallRule implements Rule<MethodCall>
    • PHPStan\Rules\Api\ApiInterfaceExtendsRule implements Rule<Interface_>
    • PHPStan\Rules\Api\ApiClassExtendsRule implements Rule<Class_>
    • PHPStan\Rules\Api\ApiInstantiationRule implements Rule<New_>
Located at src/Rules/Rule.php
Methods