Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Make Sure PDO::FETCH_DEFAULT is Defined#48

Merged
sergiosalvatore merged 1 commit into
masterfrom
make-sure-fetch-default-is-defined
Jul 8, 2024
Merged

Make Sure PDO::FETCH_DEFAULT is Defined#48
sergiosalvatore merged 1 commit into
masterfrom
make-sure-fetch-default-is-defined

Conversation

@sergiosalvatore
Copy link
Copy Markdown
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