Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Trying to access array offset on value of type null #7934

Merged
merged 1 commit into from
Dec 9, 2019

Conversation

BenMorel
Copy link
Contributor

This error occurs on PHP 7.4, for example when you're running this (invalid) DQL from the Symfony console:

bin/console doctrine:query:dql "SELECT CURRENT_TIMESTAMP()"

In Parser.php line 305:
Notice: Trying to access array offset on value of type null

Copy link
Member

@lcobucci lcobucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd also need a test case here

@lcobucci lcobucci added this to the 2.7.1 milestone Nov 29, 2019
@BenMorel
Copy link
Contributor Author

Not sure I wrote the best test here, but it does catch the notice on PHP 7.4!

beberlei
beberlei previously approved these changes Nov 30, 2019
SenseException
SenseException previously approved these changes Dec 8, 2019
@lcobucci lcobucci merged commit c9e41d0 into doctrine:2.7 Dec 9, 2019
@BenMorel
Copy link
Contributor Author

BenMorel commented Dec 9, 2019

👍

@lcobucci lcobucci self-assigned this Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants