Interface PHPStan\Rules\Rule

<TNodeType is Node>

This is the interface custom rules implement. To register it in the configuration file use the phpstan.rules.rule service tag:

services:
	-
		class: App\MyRule
		tags:
			- phpstan.rules.rule

Learn more: https://phpstan.org/developing-extensions/rules

  • PHPStan\Rules\Rule
    • PHPStan\Rules\Functions\MissingFunctionReturnTypehintRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\FunctionAttributesRule implements Rule<Function_>
    • PHPStan\Rules\Functions\InvalidLexicalVariablesInClosureUseRule implements Rule<Closure>
    • PHPStan\Rules\Functions\CallToFunctionParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\IncompatibleDefaultParameterTypeRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\ArrowFunctionReturnNullsafeByRefRule implements Rule<ArrowFunction>
    • PHPStan\Rules\Functions\ParameterCastableToStringRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\CallToFunctionStatementWithoutSideEffectsRule implements Rule<Expression>
    • PHPStan\Rules\Functions\PrintfArrayParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ClosureReturnTypeRule implements Rule<ClosureReturnStatementsNode>
    • PHPStan\Rules\Functions\UselessFunctionReturnValueRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\RandomIntParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ClosureAttributesRule implements Rule<Closure>
    • PHPStan\Rules\Functions\ArrayFilterRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ExistingClassesInClosureTypehintsRule implements Rule<Closure>
    • PHPStan\Rules\Functions\ArrowFunctionAttributesRule implements Rule<ArrowFunction>
    • PHPStan\Rules\Functions\CallCallablesRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ExistingClassesInArrowFunctionTypehintsRule implements Rule<ArrowFunction>
    • PHPStan\Rules\Functions\DefineParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ArrayValuesRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ArrowFunctionReturnTypeRule implements Rule<InArrowFunctionNode>
    • PHPStan\Rules\Functions\ReturnTypeRule implements Rule<Return_>
    • PHPStan\Rules\Functions\SortParameterCastableToStringRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\RedefinedParametersRule implements Rule<FunctionLike>
    • PHPStan\Rules\Functions\ParamAttributesRule implements Rule<Param>
    • PHPStan\Rules\Functions\PrintfParametersRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\IncompatibleClosureDefaultParameterTypeRule implements Rule<InClosureNode>
    • PHPStan\Rules\Functions\ImplodeParameterCastableToStringRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\CallToNonExistentFunctionRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\CallUserFuncRule implements Rule<FuncCall>
    • PHPStan\Rules\Functions\ReturnNullsafeByRefRule implements Rule<ReturnStatementsNode>
    • PHPStan\Rules\Functions\VariadicParametersDeclarationRule implements Rule<FunctionLike>
    • PHPStan\Rules\Functions\ExistingClassesInTypehintsRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\UnusedClosureUsesRule implements Rule<Closure>
    • PHPStan\Rules\Functions\IncompatibleArrowFunctionDefaultParameterTypeRule implements Rule<InArrowFunctionNode>
    • PHPStan\Rules\Functions\FunctionCallableRule implements Rule<FunctionCallableNode>
    • PHPStan\Rules\Functions\DuplicateFunctionDeclarationRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\MissingFunctionParameterTypehintRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Functions\InnerFunctionRule implements Rule<Function_>
    • PHPStan\Rules\Keywords\DeclareStrictTypesRule implements Rule<Declare_>
    • PHPStan\Rules\Keywords\ContinueBreakInLoopRule implements Rule<Stmt>
    • PHPStan\Rules\Keywords\RequireFileExistsRule implements Rule<Include_>
    • PHPStan\Rules\Api\PhpStanNamespaceIn3rdPartyPackageRule implements Rule<Namespace_>
    • PHPStan\Rules\Api\ApiInterfaceExtendsRule implements Rule<Interface_>
    • PHPStan\Rules\Api\ApiClassConstFetchRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Api\OldPhpParser4ClassRule implements Rule<Name>
    • PHPStan\Rules\Api\NodeConnectingVisitorAttributesRule implements Rule<MethodCall>
    • PHPStan\Rules\Api\ApiClassExtendsRule implements Rule<Class_>
    • PHPStan\Rules\Api\ApiInstantiationRule implements Rule<New_>
    • PHPStan\Rules\Api\ApiTraitUseRule implements Rule<TraitUse>
    • PHPStan\Rules\Api\ApiClassImplementsRule implements Rule<Class_>
    • PHPStan\Rules\Api\RuntimeReflectionFunctionRule implements Rule<FuncCall>
    • PHPStan\Rules\Api\ApiStaticCallRule implements Rule<StaticCall>
    • PHPStan\Rules\Api\ApiMethodCallRule implements Rule<MethodCall>
    • PHPStan\Rules\Api\ApiInstanceofTypeRule implements Rule<Instanceof_>
    • PHPStan\Rules\Api\GetTemplateTypeRule implements Rule<MethodCall>
    • PHPStan\Rules\Api\RuntimeReflectionInstantiationRule implements Rule<New_>
    • PHPStan\Rules\Api\ApiInstanceofRule implements Rule<Instanceof_>
    • PHPStan\Rules\Ignore\IgnoreParseErrorRule implements Rule<FileNode>
    • PHPStan\Rules\Arrays\OffsetAccessAssignmentRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\OffsetAccessWithoutDimForReadingRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\InvalidKeyInArrayItemRule implements Rule<ArrayItem>
    • PHPStan\Rules\Arrays\UnpackIterableInArrayRule implements Rule<LiteralArrayNode>
    • PHPStan\Rules\Arrays\NonexistentOffsetInArrayDimFetchRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\ArrayUnpackingRule implements Rule<ArrayItem>
    • PHPStan\Rules\Arrays\ArrayDestructuringRule implements Rule<Assign>
    • PHPStan\Rules\Arrays\OffsetAccessValueAssignmentRule implements Rule<Expr>
    • PHPStan\Rules\Arrays\DeadForeachRule implements Rule<Foreach_>
    • PHPStan\Rules\Arrays\OffsetAccessAssignOpRule implements Rule<AssignOp>
    • PHPStan\Rules\Arrays\InvalidKeyInArrayDimFetchRule implements Rule<ArrayDimFetch>
    • PHPStan\Rules\Arrays\DuplicateKeysInLiteralArraysRule implements Rule<LiteralArrayNode>
    • PHPStan\Rules\Arrays\IterableInForeachRule implements Rule<InForeachNode>
    • PHPStan\Rules\Variables\VariableCloningRule implements Rule<Clone_>
    • PHPStan\Rules\Variables\ParameterOutExecutionEndTypeRule implements Rule<ExecutionEndNode>
    • PHPStan\Rules\Variables\IssetRule implements Rule<Isset_>
    • PHPStan\Rules\Variables\EmptyRule implements Rule<Empty_>
    • PHPStan\Rules\Variables\ParameterOutAssignedTypeRule implements Rule<VariableAssignNode>
    • PHPStan\Rules\Variables\DefinedVariableRule implements Rule<Variable>
    • PHPStan\Rules\Variables\UnsetRule implements Rule<Unset_>
    • PHPStan\Rules\Variables\NullCoalesceRule implements Rule<Expr>
    • PHPStan\Rules\Variables\CompactVariablesRule implements Rule<FuncCall>
    • PHPStan\Rules\Classes\LocalTypeAliasesRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\UnusedConstructorParametersRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Classes\RequireExtendsRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\LocalTypeTraitUseAliasesRule implements Rule<InTraitNode>
    • PHPStan\Rules\Classes\ExistingClassesInInterfaceExtendsRule implements Rule<Interface_>
    • PHPStan\Rules\Classes\PropertyTagTraitUseRule implements Rule<InTraitNode>
    • PHPStan\Rules\Classes\ExistingClassInTraitUseRule implements Rule<TraitUse>
    • PHPStan\Rules\Classes\NewStaticRule implements Rule<New_>
    • PHPStan\Rules\Classes\MethodTagTraitRule implements Rule<Trait_>
    • PHPStan\Rules\Classes\MixinRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\PropertyTagRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ClassConstantAttributesRule implements Rule<ClassConst>
    • PHPStan\Rules\Classes\DuplicateClassDeclarationRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\MethodTagRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ClassConstantRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Classes\EnumSanityRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\InstantiationCallableRule implements Rule<InstantiationCallableNode>
    • PHPStan\Rules\Classes\MixinTraitRule implements Rule<Trait_>
    • PHPStan\Rules\Classes\AllowedSubTypesRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\LocalTypeTraitAliasesRule implements Rule<Trait_>
    • PHPStan\Rules\Classes\TraitAttributeClassRule implements Rule<Trait_>
    • PHPStan\Rules\Classes\PropertyTagTraitRule implements Rule<Trait_>
    • PHPStan\Rules\Classes\AccessPrivateConstantThroughStaticRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Classes\MethodTagTraitUseRule implements Rule<InTraitNode>
    • PHPStan\Rules\Classes\ExistingClassInClassExtendsRule implements Rule<Class_>
    • PHPStan\Rules\Classes\ImpossibleInstanceOfRule implements Rule<Instanceof_>
    • PHPStan\Rules\Classes\ExistingClassesInEnumImplementsRule implements Rule<Enum_>
    • PHPStan\Rules\Classes\ReadOnlyClassRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\NonClassAttributeClassRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\MixinTraitUseRule implements Rule<InTraitNode>
    • PHPStan\Rules\Classes\RequireImplementsRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\InvalidPromotedPropertiesRule implements Rule<FunctionLike>
    • PHPStan\Rules\Classes\InstantiationRule implements Rule<New_>
    • PHPStan\Rules\Classes\ClassAttributesRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ExistingClassesInClassImplementsRule implements Rule<Class_>
    • PHPStan\Rules\Classes\DuplicateDeclarationRule implements Rule<InClassNode>
    • PHPStan\Rules\Classes\ExistingClassInInstanceOfRule implements Rule<Instanceof_>
    • PHPStan\Rules\Names\UsedNamesRule implements Rule<FileNode>
    • PHPStan\Rules\EnumCases\EnumCaseAttributesRule implements Rule<EnumCase>
    • PHPStan\Rules\Pure\PureMethodRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Pure\PureFunctionRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Regexp\RegularExpressionQuotingRule implements Rule<FuncCall>
    • PHPStan\Rules\Regexp\RegularExpressionPatternRule implements Rule<FuncCall>
    • PHPStan\Rules\Constants\MissingClassConstantTypehintRule implements Rule<ClassConst>
    • PHPStan\Rules\Constants\ConstantRule implements Rule<ConstFetch>
    • PHPStan\Rules\Constants\DynamicClassConstantFetchRule implements Rule<ClassConstFetch>
    • PHPStan\Rules\Constants\MagicConstantContextRule implements Rule<MagicConst>
    • PHPStan\Rules\Constants\ValueAssignedToClassConstantRule implements Rule<ClassConst>
    • PHPStan\Rules\Constants\OverridingConstantRule implements Rule<ClassConst>
    • PHPStan\Rules\Constants\NativeTypedClassConstantRule implements Rule<ClassConst>
    • PHPStan\Rules\Constants\FinalConstantRule implements Rule<ClassConst>
    • PHPStan\Rules\Comparison\ImpossibleCheckTypeMethodCallRule implements Rule<MethodCall>
    • PHPStan\Rules\Comparison\BooleanNotConstantConditionRule implements Rule<BooleanNot>
    • PHPStan\Rules\Comparison\BooleanOrConstantConditionRule implements Rule<BooleanOrNode>
    • PHPStan\Rules\Comparison\ConstantLooseComparisonRule implements Rule<BinaryOp>
    • PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCallRule implements Rule<StaticCall>
    • PHPStan\Rules\Comparison\ImpossibleCheckTypeFunctionCallRule implements Rule<FuncCall>
    • PHPStan\Rules\Comparison\IfConstantConditionRule implements Rule<If_>
    • PHPStan\Rules\Comparison\UsageOfVoidMatchExpressionRule implements Rule<Match_>
    • PHPStan\Rules\Comparison\TernaryOperatorConstantConditionRule implements Rule<Ternary>
    • PHPStan\Rules\Comparison\NumberComparisonOperatorsConstantConditionRule implements Rule<BinaryOp>
    • PHPStan\Rules\Comparison\DoWhileLoopConstantConditionRule implements Rule<DoWhileLoopConditionNode>
    • PHPStan\Rules\Comparison\ElseIfConstantConditionRule implements Rule<ElseIf_>
    • PHPStan\Rules\Comparison\BooleanAndConstantConditionRule implements Rule<BooleanAndNode>
    • PHPStan\Rules\Comparison\StrictComparisonOfDifferentTypesRule implements Rule<BinaryOp>
    • PHPStan\Rules\Comparison\WhileLoopAlwaysTrueConditionRule implements Rule<BreaklessWhileLoopNode>
    • PHPStan\Rules\Comparison\LogicalXorConstantConditionRule implements Rule<LogicalXor>
    • PHPStan\Rules\Comparison\WhileLoopAlwaysFalseConditionRule implements Rule<While_>
    • PHPStan\Rules\Comparison\MatchExpressionRule implements Rule<MatchExpressionNode>
    • PHPStan\Rules\Operators\InvalidComparisonOperationRule implements Rule<BinaryOp>
    • PHPStan\Rules\Operators\InvalidBinaryOperationRule implements Rule<Expr>
    • PHPStan\Rules\Operators\InvalidAssignVarRule implements Rule<Expr>
    • PHPStan\Rules\Operators\InvalidIncDecOperationRule implements Rule<Expr>
    • PHPStan\Rules\Operators\InvalidUnaryOperationRule implements Rule<Expr>
    • PHPStan\Rules\Namespaces\ExistingNamesInUseRule implements Rule<Use_>
    • PHPStan\Rules\Namespaces\ExistingNamesInGroupUseRule implements Rule<GroupUse>
    • PHPStan\Rules\Missing\MissingReturnRule implements Rule<ExecutionEndNode>
    • PHPStan\Rules\Traits\ConflictingTraitConstantsRule implements Rule<ClassConst>
    • PHPStan\Rules\Traits\NotAnalysedTraitRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\Traits\ConstantsInTraitsRule implements Rule<ClassConst>
    • PHPStan\Rules\DeadCode\UnreachableStatementRule implements Rule<UnreachableStatementNode>
    • PHPStan\Rules\DeadCode\UnusedPrivatePropertyRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\DeadCode\UnusedPrivateConstantRule implements Rule<ClassConstantsNode>
    • PHPStan\Rules\DeadCode\CallToMethodStatementWithoutImpurePointsRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\DeadCode\CallToConstructorStatementWithoutImpurePointsRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\DeadCode\NoopRule implements Rule<NoopExpressionNode>
    • PHPStan\Rules\DeadCode\UnusedPrivateMethodRule implements Rule<ClassMethodsNode>
    • PHPStan\Rules\DeadCode\CallToFunctionStatementWithoutImpurePointsRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\DeadCode\CallToStaticMethodStatementWithoutImpurePointsRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\Exceptions\MissingCheckedExceptionInMethodThrowsRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Exceptions\TooWideMethodThrowTypeRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Exceptions\ThrowExpressionRule implements Rule<Throw_>
    • PHPStan\Rules\Exceptions\TooWideFunctionThrowTypeRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Exceptions\ThrowsVoidMethodWithExplicitThrowPointRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Exceptions\NoncapturingCatchRule implements Rule<Catch_>
    • PHPStan\Rules\Exceptions\OverwrittenExitPointByFinallyRule implements Rule<FinallyExitPointsNode>
    • PHPStan\Rules\Exceptions\CaughtExceptionExistenceRule implements Rule<Catch_>
    • PHPStan\Rules\Exceptions\MissingCheckedExceptionInFunctionThrowsRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Exceptions\CatchWithUnthrownExceptionRule implements Rule<CatchWithUnthrownExceptionNode>
    • PHPStan\Rules\Exceptions\ThrowsVoidFunctionWithExplicitThrowPointRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Exceptions\ThrowExprTypeRule implements Rule<Throw_>
    • PHPStan\Rules\Methods\ConsistentConstructorRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\FinalPrivateMethodRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\MissingMethodReturnTypehintRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\IncompatibleDefaultParameterTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\AbstractMethodInNonAbstractClassRule implements Rule<ClassMethod>
    • PHPStan\Rules\Methods\MissingMethodImplementationRule implements Rule<InClassNode>
    • PHPStan\Rules\Methods\CallToConstructorStatementWithoutSideEffectsRule implements Rule<NoopExpressionNode>
    • PHPStan\Rules\Methods\CallToStaticMethodStatementWithoutSideEffectsRule implements Rule<NoopExpressionNode>
    • PHPStan\Rules\Methods\OverridingMethodRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\StaticMethodCallableRule implements Rule<StaticMethodCallableNode>
    • PHPStan\Rules\Methods\MethodAttributesRule implements Rule<ClassMethod>
    • PHPStan\Rules\Methods\MethodSignatureRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\CallToMethodStatementWithoutSideEffectsRule implements Rule<NoopExpressionNode>
    • PHPStan\Rules\Methods\ConstructorReturnTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\MissingMethodParameterTypehintRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\MethodVisibilityInInterfaceRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\ReturnTypeRule implements Rule<Return_>
    • PHPStan\Rules\Methods\MissingMagicSerializationMethodsRule implements Rule<InClassNode>
    • PHPStan\Rules\Methods\NullsafeMethodCallRule implements Rule<NullsafeMethodCall>
    • PHPStan\Rules\Methods\AbstractPrivateMethodRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\MissingMethodSelfOutTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\CallStaticMethodsRule implements Rule<StaticCall>
    • PHPStan\Rules\Methods\ExistingClassesInTypehintsRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Methods\MethodCallableRule implements Rule<MethodCallableNode>
    • PHPStan\Rules\Methods\CallPrivateMethodThroughStaticRule implements Rule<StaticCall>
    • PHPStan\Rules\Methods\CallMethodsRule implements Rule<MethodCall>
    • PHPStan\Rules\Properties\AccessPropertiesInAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\NullsafePropertyFetchRule implements Rule<NullsafePropertyFetch>
    • PHPStan\Rules\Properties\DefaultValueTypesAssignedToPropertiesRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\PropertyAttributesRule implements Rule<Property>
    • PHPStan\Rules\Properties\WritingToReadOnlyPropertiesRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\UninitializedPropertyRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\ExistingClassesInPropertiesRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\AccessPropertiesRule implements Rule<PropertyFetch>
    • PHPStan\Rules\Properties\ReadOnlyPropertyAssignRefRule implements Rule<AssignRef>
    • PHPStan\Rules\Properties\AccessStaticPropertiesInAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\MissingReadOnlyPropertyAssignRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\Properties\ReadOnlyPropertyAssignRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\PropertiesInInterfaceRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\MissingReadOnlyByPhpDocPropertyAssignRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\Properties\TypesAssignedToPropertiesRule implements Rule<PropertyAssignNode>
    • PHPStan\Rules\Properties\OverridingPropertyRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\AccessStaticPropertiesRule implements Rule<StaticPropertyFetch>
    • PHPStan\Rules\Properties\ReadingWriteOnlyPropertiesRule implements Rule<Expr>
    • PHPStan\Rules\Properties\ReadOnlyByPhpDocPropertyAssignRefRule implements Rule<AssignRef>
    • PHPStan\Rules\Properties\MissingPropertyTypehintRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\AccessPrivatePropertyThroughStaticRule implements Rule<StaticPropertyFetch>
    • PHPStan\Rules\Properties\InvalidCallablePropertyTypeRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Properties\ReadOnlyPropertyRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Types\InvalidTypesInUnionRule implements Rule<Node>
    • PHPStan\Rules\Playground\FunctionNeverRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\Playground\NotAnalysedTraitRule implements Rule<CollectedDataNode>
    • PHPStan\Rules\Playground\NoPhpCodeRule implements Rule<FileNode>
    • PHPStan\Rules\Playground\MethodNeverRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\Generics\FunctionTemplateTypeRule implements Rule<Function_>
    • PHPStan\Rules\Generics\MethodTagTemplateTypeTraitRule implements Rule<Trait_>
    • PHPStan\Rules\Generics\MethodTemplateTypeRule implements Rule<ClassMethod>
    • PHPStan\Rules\Generics\MethodTagTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\UsedTraitsRule implements Rule<TraitUse>
    • PHPStan\Rules\Generics\EnumTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\EnumAncestorsRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\TraitTemplateTypeRule implements Rule<Trait_>
    • PHPStan\Rules\Generics\ClassTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\InterfaceTemplateTypeRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\InterfaceAncestorsRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\MethodSignatureVarianceRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\Generics\FunctionSignatureVarianceRule implements Rule<InFunctionNode>
    • PHPStan\Rules\Generics\ClassAncestorsRule implements Rule<InClassNode>
    • PHPStan\Rules\Generics\PropertyVarianceRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\Whitespace\FileWhitespaceRule implements Rule<FileNode>
    • PHPStan\Rules\DateTimeInstantiationRule implements Rule<New_>
    • PHPStan\Rules\Generators\YieldFromTypeRule implements Rule<YieldFrom>
    • PHPStan\Rules\Generators\YieldInGeneratorRule implements Rule<Expr>
    • PHPStan\Rules\Generators\YieldTypeRule implements Rule<Yield_>
    • PHPStan\Rules\Cast\EchoRule implements Rule<Echo_>
    • PHPStan\Rules\Cast\InvalidPartOfEncapsedStringRule implements Rule<InterpolatedString>
    • PHPStan\Rules\Cast\UnsetCastRule implements Rule<Unset_>
    • PHPStan\Rules\Cast\InvalidCastRule implements Rule<Cast>
    • PHPStan\Rules\Cast\PrintRule implements Rule<Print_>
    • PHPStan\Rules\Debug\FileAssertRule implements Rule<FuncCall>
    • PHPStan\Rules\Debug\DebugScopeRule implements Rule<FuncCall>
    • PHPStan\Rules\Debug\DumpPhpDocTypeRule implements Rule<FuncCall>
    • PHPStan\Rules\Debug\DumpTypeRule implements Rule<FuncCall>
    • PHPStan\Rules\PhpDoc\WrongVariableNameInVarTagRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\RequireExtendsDefinitionClassRule implements Rule<InClassNode>
    • PHPStan\Rules\PhpDoc\VarTagChangedExpressionTypeRule implements Rule<VarTagChangedExpressionTypeNode>
    • PHPStan\Rules\PhpDoc\IncompatibleParamImmediatelyInvokedCallableRule implements Rule<FunctionLike>
    • PHPStan\Rules\PhpDoc\IncompatiblePropertyPhpDocTypeRule implements Rule<ClassPropertyNode>
    • PHPStan\Rules\PhpDoc\FunctionConditionalReturnTypeRule implements Rule<InFunctionNode>
    • PHPStan\Rules\PhpDoc\InvalidPhpDocTagValueRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\RequireExtendsDefinitionTraitRule implements Rule<Trait_>
    • PHPStan\Rules\PhpDoc\RequireImplementsDefinitionClassRule implements Rule<InClassNode>
    • PHPStan\Rules\PhpDoc\MethodAssertRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\PhpDoc\InvalidThrowsPhpDocValueRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\MethodConditionalReturnTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\PhpDoc\RequireImplementsDefinitionTraitRule implements Rule<Trait_>
    • PHPStan\Rules\PhpDoc\InvalidPhpDocVarTagTypeRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\InvalidPHPStanDocTagRule implements Rule<Stmt>
    • PHPStan\Rules\PhpDoc\IncompatibleSelfOutTypeRule implements Rule<InClassMethodNode>
    • PHPStan\Rules\PhpDoc\FunctionAssertRule implements Rule<InFunctionNode>
    • PHPStan\Rules\PhpDoc\IncompatiblePhpDocTypeRule implements Rule<FunctionLike>
    • PHPStan\Rules\PhpDoc\IncompatibleClassConstantPhpDocTypeRule implements Rule<ClassConst>
    • PHPStan\Rules\TooWideTypehints\TooWideClosureReturnTypehintRule implements Rule<ClosureReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWideFunctionParameterOutTypeRule implements Rule<FunctionReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWideMethodReturnTypehintRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWideMethodParameterOutTypeRule implements Rule<MethodReturnStatementsNode>
    • PHPStan\Rules\TooWideTypehints\TooWidePropertyTypeRule implements Rule<ClassPropertiesNode>
    • PHPStan\Rules\TooWideTypehints\TooWideArrowFunctionReturnTypehintRule implements Rule<InArrowFunctionNode>
    • PHPStan\Rules\TooWideTypehints\TooWideFunctionReturnTypehintRule implements Rule<FunctionReturnStatementsNode>
Located at src/Rules/Rule.php
Methods