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
In the following lines, is_callable will return true if the object being tested has implemented __call magic method which will cause unexpected results depending on the __call implementation. I think it's better to use method_exists here rather than is_callable.
In the following lines,
is_callable
will return true if the object being tested has implemented__call
magic method which will cause unexpected results depending on the__call
implementation. I think it's better to usemethod_exists
here rather thanis_callable
.toResponseArray
check:https://github.com/loyaltycorp/apiformats/blob/6af57d9ce38817a1766252e39126f2445a631831/src/Encoders/AbstractEncoder.php#L118
getTransformer
check:https://github.com/loyaltycorp/apiformats/blob/6af57d9ce38817a1766252e39126f2445a631831/src/Encoders/JsonApiEncoder.php#L167
See PR #15 for changes with test.
The text was updated successfully, but these errors were encountered: