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
I think it would be better to use Null coalescing (??) operator here, because the current code does not work correctly with boolean or zero values.
And we need an extra if because Arr::get returns an array if the provided key is null.
laravel-paybox/src/Paybox.php
Line 131 in 5ff87ed
laravel-paybox/src/Paybox.php
Line 134 in 5ff87ed
I think it would be better to use Null coalescing (
??
) operator here, because the current code does not work correctly with boolean or zero values.And we need an extra
if
because Arr::get returns an array if the provided key is null.So the final code will look something like this:
What do you think?
The text was updated successfully, but these errors were encountered: