Menu
← Back to all error identifiers
Error Identifiers: instanceof.*
There are 12 error identifiers in the instanceof.* group:
-
Instanceof check will always evaluate to false based on the inferred types.
-
Instanceof check will always evaluate to true, making it redundant.
-
instanceof.deprecatedClass phpstan-deprecation-rulesInstanceof check references a deprecated class.
-
instanceof.deprecatedEnum phpstan-deprecation-rulesInstanceof check references a deprecated enum.
-
instanceof.deprecatedInterface phpstan-deprecation-rulesInstanceof check references a deprecated interface.
-
instanceof.deprecatedTrait phpstan-deprecation-rulesInstanceof check references a deprecated trait.
-
Instanceof check references an internal class from another package.
-
Instanceof check references an internal enum from another package.
-
Instanceof check references an internal interface from another package.
-
Instanceof check references an internal trait from another package.
-
Right-hand side of instanceof is not a string or object.
-
Instanceof check against a trait always evaluates to false.