Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
getObjectForTrait() does not work for traits that declare a constructor #3722
I test the following trait:
The test class is :
The console output when I launch the test:
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?