Skip to content

Conversation

sergiosalvatore
Copy link
Contributor

PDO::FETCH_DEFAULT arrived as of PHP v8.0.7. For those still on 7.4 referring to it directly in the code causes it to break with an undefined constant.

This checks to make sure the constant exists before comparing against it.

PDO::FETCH_DEFAULT arrived as of PHP v8.0.7.  For those still on 7.4
referring to it directly in the code causes it to break with an
undefined constant.

This checks to make sure the constant exists before comparing against
it.
@sergiosalvatore sergiosalvatore merged commit 3ae9c6c into master Jul 8, 2024
@sergiosalvatore sergiosalvatore deleted the make-sure-fetch-default-is-defined branch July 8, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants