Error Identifiers: enum.*
← Back to all error identifiers
There are 24 error identifiers in the enum.* group:
-
AllowDynamicProperties attribute cannot be used on enums.
-
Enum backing type is not int or string.
-
Using an enum case declaration inside a class, interface, or trait instead of an enum.
-
Enum case value does not match the declared backing type.
-
Pure enum case has a value, but only backed enums can have case values.
-
Enum declares a constructor, which is not allowed.
-
Native #[Deprecated] attribute cannot be used on enums.
-
Enum 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 declares two constants with the same name.
-
Enum declares two cases with the same name.
-
Enum declares two methods with the same name.
-
Property is declared more than once in an enum.
-
Multiple enum cases share the same backing value.
-
Enum uses a @template type parameter, but enums cannot be generic.
-
Enum implements an interface marked as deprecated.
-
Enum implements an internal interface from another package.
-
Enum declares a disallowed magic method.
-
Enum redeclares a built-in method that cannot be overridden.
-
Backed enum case is missing a required value.
-
Enum name is referenced with incorrect letter casing.
-
Enum name conflicts with an existing name in the same namespace.
-
Enum cannot implement the Serializable interface.