Skip to content

[12.x] Use PDO subclass polyfill - #59640

Merged
taylorotwell merged 4 commits into
laravel:12.xfrom
jnoordsij:use-pdo-polyfill
Apr 13, 2026
Merged

taylorotwell merged 4 commits into
laravel:12.xfrom
jnoordsij:use-pdo-polyfill

Conversation

@jnoordsij

@jnoordsij jnoordsij commented Apr 10, 2026 •

Copy link
Copy Markdown
Contributor

In symfony/polyfill#549 PDO subclass polyfills were introduced. These can be subsequently applied here to simplify code.

Note this is a draft until upstream tags a new version.

Those interested in following this up elsewhere: https://github.com/search?q=org%3Alaravel+%5CPdo%5CMysql&type=code shows a list of occurences elsewhere that subsequently may be refactored in similar fashion.

@jnoordsij
jnoordsij changed the base branch from 13.x to 12.x April 10, 2026 16:42
@jnoordsij jnoordsij changed the title Use pdo polyfill [12.x] Use PDO subclass polyfill Apr 10, 2026
@jnoordsij
jnoordsij marked this pull request as draft April 10, 2026 16:44
@jnoordsij
jnoordsij marked this pull request as ready for review April 10, 2026 16:44
@jnoordsij
jnoordsij marked this pull request as draft April 10, 2026 16:44
Comment thread composer.json Outdated
Comment thread src/Illuminate/Database/composer.json Outdated
@crynobone
crynobone self-requested a review April 13, 2026 04:50
@crynobone
crynobone marked this pull request as ready for review April 13, 2026 04:55
@jnoordsij

Copy link
Copy Markdown
Contributor Author

Thanks for the bump @crynobone!

@taylorotwell
taylorotwell merged commit 9dbefec into laravel:12.x Apr 13, 2026
70 checks passed
@jnoordsij
jnoordsij deleted the use-pdo-polyfill branch April 13, 2026 13:05
jonagoldman pushed a commit to deplox/laravel-framework that referenced this pull request Apr 30, 2026
* DRAFT: Bump symfony/polyfill-php8.4 to latest version

* Simplify code by leveraging PDO subclass Symfony polyfill

See also symfony/polyfill#549

* Apply suggestion from @crynobone

* Apply suggestion from @crynobone

---------

Co-authored-by: Mior Muhammad Zaki <[email protected]>
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.

3 participants