Namespace PHPStan\Rules

Classes
ClassNameUsageLocation
FoundTypeResult
RuleErrorBuilder
RuleLevelHelper
RuleLevelHelperAcceptsResult
Interfaces
FileDependenciesRuleError

An error whose existence depends on files other than the one being analysed - a path named in the code that has to exist, a data file read at analysis time. The result cache watches the files listed here and re-analyses the file the error is reported in when one of them appears, changes or is deleted, which nothing else would do: the dependency graph is built from reflected symbols, and a path is not a symbol. Paths must be absolute and are watched whether or not they exist, so an error about a missing file is cleared by that file being created.

FileRuleError
IdentifierRuleError
LineRuleError
MetadataRuleError
NonIgnorableRuleError
Rule

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

RuleError
TipRuleError
Namespaces
PHPStan\Rules\Constants
PHPStan\Rules\Exceptions
PHPStan\Rules\Methods
PHPStan\Rules\Properties
PHPStan\Rules\RestrictedUsage