You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Psalm should support PHP 8.3's new Override attribute in two ways:
When a method has an Override attribute but does not override a parent method, raise an issue. (Any method with an Override attribute that would cause a fatal runtime error should also be detected statically by Psalm.) Call it InvalidOverride. (Implemented in New InvalidOverride issue for Override attribute #10644.)
When a method of a child class overrides that of a parent class and there is no Override attribute, raise an issue. Call it MissingOverrideAttribute.
Both of these would apply only when the PHP version is >= 8.3, and the second one should probably have its own configuration option.
I'm happy to work on the implementation and use this issue to track progress, discuss the ideas, and hash out any details, like the error names or configuration.
The text was updated successfully, but these errors were encountered:
Psalm should support PHP 8.3's new
Override
attribute in two ways:Override
attribute but does not override a parent method, raise an issue. (Any method with anOverride
attribute that would cause a fatal runtime error should also be detected statically by Psalm.) Call itInvalidOverride
. (Implemented in New InvalidOverride issue for Override attribute #10644.)Override
attribute, raise an issue. Call itMissingOverrideAttribute
.Both of these would apply only when the PHP version is >= 8.3, and the second one should probably have its own configuration option.
I'm happy to work on the implementation and use this issue to track progress, discuss the ideas, and hash out any details, like the error names or configuration.
The text was updated successfully, but these errors were encountered: