phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Support for Override attributes

Open MrExplode opened this issue 1 year ago • 3 comments

Static analysis support for the #[\Override] attribute introduced in PHP 8.3 would be great.

MrExplode avatar Feb 06 '24 10:02 MrExplode

Thank you for the suggestion, will be implemented.

jakubmisek avatar Feb 06 '24 12:02 jakubmisek

@MrExplode The latest pre-release 1.44.14961 gets basic override diagnostics (there are a few cases with traits still not handled)

jakubmisek avatar Feb 08 '24 22:02 jakubmisek

Implemented in the latest update.

There is one more case, we don't handle:

  • [ ] #[Override] on a function that hides function from a trait is not reported

jakubmisek avatar Feb 16 '24 17:02 jakubmisek