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
Hello @emergingdzns, thank you very much for your report. I checked the class you mentioned and I can see that $externalId is defined as string|arraythere. Could you please share which version of the library you use?
Our internal CI/CD tools have identified that the Customer class findByExternalId method is not defined properly.
Following the documentation I am fetching the customer like this, passing in an array:
This works. But the tools are saying:
The reason it works is because in the class you check for gettype and if it's not a string you wrap it in an array.
The problem is that the docblock above has the first parameter noted as:
The
string
should be set tomixed
or asstring|array
.The text was updated successfully, but these errors were encountered: