Interface PHPStan\Rules\Rule

<TNodeType is Node>

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