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
Is there any way we could circumvent this issue, other than of course putting it into baseline? Is it maybe possible to drop the scalar data type completely?
The text was updated successfully, but these errors were encountered:
Maybe it's not the case in your Symfony version but it would definitely be a problem for you in the future so you need to rethink your approach anyway :)
Hi,
We have a case where we have a method:
...and we expect to receive data using an URL containing the following query parameter:
This means that the
InputBag
would contain an array of arrays.Since
InputBag
is generic (stub here: https://github.com/phpstan/phpstan-symfony/blob/1.2.x/stubs/Symfony/Component/HttpFoundation/InputBag.stub) we of course receive an analysis error that we need to define what types of data we expect InputBag to contain.However, we cannot specify an array, since it is not declared in the allowed data types for that generic.
Is there any way we could circumvent this issue, other than of course putting it into baseline? Is it maybe possible to drop the
scalar
data type completely?The text was updated successfully, but these errors were encountered: