Menu
← Back to all error identifiers
Error Identifiers: property.*
There are 88 error identifiers in the property.* group:
-
property.abstract non-ignorableNon-abstract class declares an abstract property.
-
property.abstractFinal non-ignorableProperty cannot be both abstract and final.
-
property.abstractFinalHook non-ignorableProperty hook cannot be both abstract and final.
-
property.abstractInInterface non-ignorableInterface property cannot be explicitly marked abstract.
-
property.abstractNonHooked non-ignorableOnly hooked properties can be declared abstract.
-
property.abstractPrivate non-ignorableProperty cannot be both abstract and private.
-
property.abstractWithoutAbstractHook non-ignorableAbstract property has no abstract hooks.
-
Property with restricted write visibility is assigned by reference.
-
property.callableType non-ignorableProperty uses callable as a native type, which is not allowed.
-
Default value does not match the property's declared type.
-
property.deprecated phpstan-deprecation-rulesAccessing a property marked as deprecated.
-
property.deprecatedClass phpstan-deprecation-rulesAccessing a property on a deprecated class.
-
property.deprecatedEnum phpstan-deprecation-rulesProperty type references a deprecated enum.
-
property.deprecatedInterface phpstan-deprecation-rulesProperty type references a deprecated interface.
-
property.deprecatedTrait phpstan-deprecation-rulesProperty type references a deprecated trait or class.
-
property.dynamicName phpstan-strict-rulesProperty is accessed using a variable name instead of a static identifier.
-
property.extraNativeType non-ignorableChild property adds a native type not present on the parent property.
-
property.final non-ignorableFinal properties require PHP 8.4 or later.
-
property.finalInInterface non-ignorableInterface property cannot be declared final.
-
property.finalPrivate non-ignorableProperty cannot be both final and private.
-
property.finalPrivateHook non-ignorablePrivate property cannot have a final hook.
-
property.hookBodyInInterface non-ignorableInterface property hook cannot have a body.
-
property.hookedStatic non-ignorableHooked properties cannot be static.
-
property.hookReadOnly non-ignorableHooked properties cannot be readonly.
-
property.hooksNotSupported non-ignorableProperty hooks require PHP 8.4 or later.
-
property.hookWithoutBody non-ignorableNon-abstract property hook must have a body.
-
property.inInterface non-ignorableInterface properties require PHP 8.4 or later.
-
Accessing an internal property from outside its namespace.
-
Accessing a property on an internal class from outside its namespace.
-
Accessing a property on an internal enum from outside its namespace.
-
Property type references an internal interface from outside its namespace.
-
Property type references an internal trait from outside its namespace.
-
property.invalidPromoted non-ignorablePromoted properties can only be used in a constructor.
-
Overriding property is missing the native type declared on the parent property.
-
Overriding property is missing the #[Override] attribute.
-
Dynamic property name is not a string.
-
property.nativeType non-ignorableOverriding property type does not match the parent property type.
-
Property type is wider than what is actually assigned to it.
-
Readable property is never read.
-
Writable property is never written to.
-
property.nonHookedInInterface non-ignorableInterface property must have hooks.
-
Accessing a property on a non-object type.
-
property.nonPublicInInterface non-ignorableInterface properties must be public.
-
property.nonStatic non-ignorableNon-static property overrides a static property from the parent class.
-
Accessing a property that does not exist on the object.
-
property.notReadable non-ignorableOverriding property removes readability required by the parent.
-
property.notWritable non-ignorableOverriding property removes writability required by the parent.
-
Private property is read but never written to.
-
Private property is written to but never read.
-
property.override non-ignorableProperty has #[Override] but does not override any parent property.
-
property.overrideAttribute non-ignorable#[Override] on properties requires PHP 8.5 or later.
-
property.parentPropertyFinal non-ignorableOverriding a final property from a parent class.
-
Overriding a property marked as @final in the parent class.
-
PHPDoc type of the property is incompatible with its native type.
-
Accessing a private property from outside the declaring class.
-
property.promotedNotSupported non-ignorableConstructor property promotion is not supported on the configured PHP version.
-
Accessing a protected property from outside the class hierarchy.
-
property.readOnly non-ignorableReadonly property overrides a readwrite property from the parent class.
-
Readonly property is assigned by reference, bypassing the readonly constraint.
-
Readonly property is assigned outside of the constructor.
-
Readonly property is assigned on a different instance instead of $this.
-
Readonly property is assigned from outside the declaring class.
-
@readonly property is assigned by reference, allowing mutation.
-
@readonly property is assigned outside of the constructor.
-
@readonly property is assigned on a different instance instead of $this.
-
@readonly property is assigned from outside the declaring class.
-
@readonly property has a default value instead of being initialized in the constructor.
-
Readonly property cannot have a default value.
-
property.readOnlyInInterface non-ignorableReadonly modifier is not allowed on interface properties.
-
Readonly property is missing a required native type declaration.
-
property.readOnlyNotSupported non-ignorableReadonly properties are not supported on the configured PHP version.
-
property.readOnlyStatic non-ignorableProperty cannot be both readonly and static.
-
property.readWrite non-ignorableReadwrite property overrides a readonly property from the parent class.
-
property.static non-ignorableStatic property overrides a non-static property from the parent class.
-
Instance property is accessed using static syntax.
-
Asymmetric visibility on a static property is not supported on the configured PHP version.
-
Property typed as bool is only ever assigned one of true or false.
-
Property uses a trait as its type, but traits are not valid types.
-
Typed property is never assigned and will be uninitialized.
-
Readonly property is not assigned in the constructor.
-
@readonly property is not assigned in the constructor.
-
Property has a native intersection type that no value can satisfy.
-
Property has a PHPDoc type that cannot be resolved to a valid type.
-
Private property is never read or written.
-
Part of the property union type is never assigned.
-
property.virtualDefault non-ignorableVirtual hooked property cannot have a default value.
-
property.visibility non-ignorableOverriding property reduces the visibility of the parent property.
-
Write-only property declared via @property-write is being read.