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
sebastianbergmann
changed the title
Unused argument $arguments for method getObjectForTrait()
getObjectForTrait() does not work for traits that declare a constructor
Jun 16, 2019
I test the following trait:
The test class is :
The console output when I launch the test:
Error: Call to a member function generate() on null
After analysis, I found variable $arguments is not used in method getObjectForTrait().
I know it's not a good practice to put the constructor in trait ... but PHP does not forbid it.
Can you fix that please?
The text was updated successfully, but these errors were encountered: