Error Identifiers: class.*
← Back to all error identifiers
There are 28 error identifiers in the class.* group:
-
AllowDynamicProperties attribute cannot be used on a readonly class.
-
The #[Deprecated] attribute is used on a class, which is not supported.
-
Class extends a sealed type without being listed as an allowed subtype.
-
Same class name is declared in multiple files.
-
Class constant is declared more than once in the same class.
-
Method is declared more than once in the same class.
-
Property is declared more than once in the same class.
-
Class extends a deprecated class.
-
Class cannot extend an enum.
-
Class extends a final class that cannot be extended.
-
Class extends a class marked as @final in PHPDoc.
-
Class uses extends instead of implements for an interface.
-
Class extends a class marked as @internal.
-
Class extends the deprecated Nette\Object or Nette\LegacyObject.
-
Class cannot extend a trait.
-
Class implements a deprecated interface.
-
Class implements an interface marked as @internal.
-
Class does not extend the base class required by @phpstan-require-extends.
-
Class does not implement the interface required by @phpstan-require-implements.
-
Class is referenced with incorrect letter casing.
-
Class name conflicts with an imported name in the same namespace.
-
Non-readonly class cannot extend a readonly class.
-
Using parent:: in a class that does not extend any class.
-
Referenced class does not exist.
-
Class name uses an internal vendor prefix from a PHAR build.
-
Readonly class cannot extend a non-readonly class.
-
Class implements Serializable without the __serialize() and __unserialize() methods.
-
Casting to string invokes a deprecated __toString() method.