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 exception ArgumentCountError gives wrong given parameter length.
When a function is called with wrong amounts of parameters, e.g. static BCMath::scale(4,2,3), in the magic static function __callStatic($name, $arguments) line 373 throws an error. That is ok, but the func_num_args() used - only returns the number of parameters of the called function and is always 2 in that case. That should be the amount of $arguments (array).
You are probably wondering why I came up with this? My editor shows me an error that the parameters for the __callStatic() magic function should always be the amount of 2.
I fixed it with PR #6
The text was updated successfully, but these errors were encountered:
The exception ArgumentCountError gives wrong given parameter length.
When a function is called with wrong amounts of parameters, e.g. static
BCMath::scale(4,2,3)
, in the magic staticfunction __callStatic($name, $arguments)
line 373 throws an error. That is ok, but the func_num_args() used - only returns the number of parameters of the called function and is always 2 in that case. That should be the amount of $arguments (array).You are probably wondering why I came up with this? My editor shows me an error that the parameters for the __callStatic() magic function should always be the amount of 2.
I fixed it with PR #6
The text was updated successfully, but these errors were encountered: