Menu
← Back to all error identifiers
Error Identifiers: enum.*
There are 29 error identifiers in the enum.* group:
-
enum.allowDynamicProperties non-ignorableAllowDynamicProperties attribute cannot be used on enums.
-
enum.backingType non-ignorableEnum backing type is not int or string.
-
enum.caseType non-ignorableEnum case value does not match the declared backing type.
-
enum.caseWithValue non-ignorablePure enum case has a value, but only backed enums can have case values.
-
Enum declares a constructor, which is not allowed.
-
enum.deprecatedAttribute non-ignorableNative #[Deprecated] attribute cannot be used on enums.
-
enum.destructor non-ignorableEnum declares a destructor, which is not allowed.
-
Enum is not listed as an allowed subtype of the sealed interface.
-
Enum with the same name is declared multiple times.
-
enum.duplicateConstant non-ignorableEnum declares two constants with the same name.
-
enum.duplicateEnumCase non-ignorableEnum declares two cases with the same name.
-
enum.duplicateMethod non-ignorableEnum declares two methods with the same name.
-
enum.duplicateProperty non-ignorableProperty with the same name is declared more than once.
-
enum.duplicateValue non-ignorableMultiple enum cases share the same backing value.
-
Enum uses a @template type parameter, but enums cannot be generic.
-
enum.implementsDeprecatedClass phpstan-deprecation-rulesEnum implements a deprecated interface.
-
enum.implementsDeprecatedEnum phpstan-deprecation-rulesEnum implements a deprecated interface.
-
enum.implementsDeprecatedInterface phpstan-deprecation-rulesEnum implements an interface marked as deprecated.
-
enum.implementsDeprecatedTrait phpstan-deprecation-rulesEnum references a deprecated trait in its implements clause.
-
Enum implements an internal class from another package.
-
Enum implements an internal enum from another package.
-
Enum implements an internal interface from another package.
-
Enum references an internal trait from another package.
-
enum.magicMethod non-ignorableEnum declares a disallowed magic method.
-
enum.methodRedeclaration non-ignorableEnum redeclares a built-in method that cannot be overridden.
-
enum.missingCase non-ignorableBacked enum case is missing a required value.
-
Enum name is referenced with incorrect letter casing.
-
enum.nameInUse non-ignorableEnum name conflicts with an existing name in the same namespace.
-
enum.serializable non-ignorableEnum cannot implement the Serializable interface.