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
The switch case statement is here to avoid the poor perf of call_user_func_array ...
But all this code can be replaced by this single line :
$this->req = $this->req->$method(...$args);
( Argument Unpacking have been implemented in php 5.6 ... lib require php 7.4 so... why not using it ? )
sellsy-client/src/Core/Request.php
Line 154 in 2cd0185
This look like bad code for me...
But this is not the first time i see this in random php project.
So some one can explain why using this pattern ?
The text was updated successfully, but these errors were encountered: