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
@Ocramius I opened the PR #28. This is for discussion only because of the BC break it causes in the api-tools-admin repository. If you think this is worth pursuing, let me know how you'd like to handle it :-)
Bug Report
Current behaviour
In:
api-tools-rest/src/AbstractResourceListener.php
Line 183 in dde0d36
the
fetchAll()
receives either an instance ofLaminas\Stdlib\Parameters
or anarray
.The definition of the generated method stubs (and the parent method) is:
Imho, in addition to problems with tools like PHPStan, this leads to all sorts of misunderstandings when trying to treat
$params
as an array. E.g. :generates :
Expected behaviour
Wouldn't it be better to enforce a strict typing on
Laminas\Stdlib\Parameters
? And let the user decide if$params
should be transformed into an array?Thanks and greetings,
Pascal
The text was updated successfully, but these errors were encountered: