Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Removing redundant code that repeats actions for different number of parameters passed #33
On several places the
This code seems to be redundant as the framework works as expected without those lines.
Have a look please and merge if works for you as well.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
The code is like that for performance. Calling call_user_func_array is much slower than invoking the function directly, on average 3 times slower. The same is true with invoking ReflectionClass. It checks up to 5 parameters before trying the defaults, which should cover a majority of cases.