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
Method findLandingInformation()
should return array{Api\Entity\SearchCustomization|null,
Api\Entity\LocalizationDetail|null} but returns array<int,
Api\Entity\LocalizationDetail|Api\Entity\SearchCustomization|null>.
so we had to write this to help phpstan understand:
The text was updated successfully, but these errors were encountered:
CircleCode
changed the title
order of select
order of QueryBuilder::select arguments is not preserved in QueryBuilder::getResults
Nov 3, 2023
CircleCode
changed the title
order of QueryBuilder::select arguments is not preserved in QueryBuilder::getResults
order of QueryBuilder::select arguments is not preserved in QueryBuilder::getResult
Nov 3, 2023
According to
phpstan-doctrine/src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php
Lines 117 to 127 in 90e60ba
QueryBuilder::getResult
returns an array withh all returned types, and does not preserve order.As an example, we had this code:
and phpstan complained that
so we had to write this to help phpstan understand:
The text was updated successfully, but these errors were encountered: