jjdunn commented on issue #6701:
URL: https://github.com/apache/netbeans/issues/6701#issuecomment-2356062455

   one problem with the #[\Override] hint: it's showing even if the 
function-signature of the method does not match the parent (too few arguments). 
 
   
   When the code runs it throws a PHP error:
   `PHP Fatal error:  {CLASSNAME}::__construct() has #[\Override] attribute, 
but no matching parent method exists `
   
   in fact the parent method DOES exist (the wording of the error-message is 
invalid), but the parent __construct() has one or more arguments and the child 
has zero
   
   It would be nice if NetBeans detected this situation and either did not 
offer the "Override" hint (or) offered a warning about too-few-arguments.  It's 
quite hard to find these without detailed inspection of the parent classes...
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to