Coming to PHP 8.3: The #[Override] attribute.
If you add this attribute to a method, PHP will check/validate that there's a method with the same name in the parent class or in any of the interfaces it uses.
If you add this attribute to a method, PHP will check/validate that there's a method with the same name in the parent class or in any of the interfaces it uses.
No comments yet.