Skip to content

Fix support for PDOExceptions#1752

Merged
barryvdh merged 1 commit intofruitcake:masterfrom
LukeTowers:patch-1
May 8, 2025
Merged

Fix support for PDOExceptions#1752
barryvdh merged 1 commit intofruitcake:masterfrom
LukeTowers:patch-1

Conversation

@LukeTowers
Copy link
Copy Markdown
Contributor

@LukeTowers LukeTowers commented Feb 26, 2025

When a PDOException is thrown (i.e. Illuminate's QueryException) during the initialization of a Collector, the current code falls over because the code property on PDOExceptions are actually strings, and not ints.

See this comment from 15 years ago, php/php-src#9529, & php/php-src#12294

When a PDOException is thrown (ex. Illuminate's QueryException) during the initialization of a Collector, the current code falls over because the code property on PDOExceptions are actually strings, and not ints. 

See [this comment from 15 years ago](https://www.php.net/manual/en/class.pdoexception.php#95812), php/php-src#9529, & php/php-src#12294
@barryvdh barryvdh merged commit 8cf5c89 into fruitcake:master May 8, 2025
@LukeTowers LukeTowers deleted the patch-1 branch May 10, 2025 06:09
barryvdh pushed a commit that referenced this pull request Jan 2, 2026
When a PDOException is thrown (ex. Illuminate's QueryException) during the initialization of a Collector, the current code falls over because the code property on PDOExceptions are actually strings, and not ints. 

See [this comment from 15 years ago](https://www.php.net/manual/en/class.pdoexception.php#95812), php/php-src#9529, & php/php-src#12294
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