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
After upgrading to doctrine/orm 3.0.0 we found PHP Warnings. PHP Warning: Undefined array key 0 in /var/www/html/vendor/doctrine/orm/src/QueryBuilder.php on line 954
Bug Report (PHP Warning)
Summary
After upgrading to doctrine/orm 3.0.0 we found PHP Warnings.
PHP Warning: Undefined array key 0 in /var/www/html/vendor/doctrine/orm/src/QueryBuilder.php on line 954
Current behavior
Inside of the where method
the value of $predicates is in this example an array like this
And this logic will throw the php warning.
Expected behavior
No PHP Warnings
It would be better to check that this value is an array and that key exists with the php method array_key_exists.
I can prepare a solution for this if I don't overlook anything about using the where method.
The text was updated successfully, but these errors were encountered: