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
Currently, Query result type inference supports only HYDRATE_OBJECT mode. What happens here is that we don't know the hydration mode of getOneOrNullResult() when called with 0 arguments, because it defaults to $this->_hydrationMode.
getResult() is different because its default hydration mode is HYDRATE_OBJECT.
One way to get type inference out of getOneOrNullResult() is to specify the hydration mode when calling it: getOneOrNullResult(Query::HYDRATE_OBJECT).
(See #232 (comment) for details on how each getResult() variant is supported.)
See failures in #270, all the new getOneOrNullResult are infered as mixed even though the getResult works fine.
E.g. here
The text was updated successfully, but these errors were encountered: