Problem/Motivation
Only mysql driver is affected
Steps to reproduce
https://wiki.php.net/rfc/deprecations_php_8_5#deprecate_driver_specific_...
Proposed resolution
- add check for PHP version and use version specific constants
- add TODO to clean-up condition when core require PHP 8.5 as minimal version
Remaining tasks
review/commit
User interface changes
Introduced terminology
API changes
Data model changes
Release notes snippet
Issue fork drupal-3543710
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3543710-address-php-8.5
changes, plain diff MR !13107
Comments
Comment #3
andypostComment #4
mondrakePDO driver subclasses were introduced by PHP 8.4 so I think we can use them also in 8.4. and not just in 8.5.
Comment #5
catchApart from #4 this looks good to me. We could maybe open a stub 12.x ticket to check all usages of
PHP_VERSION_IDfor clean-up, probably one ticket for all of those would be enough.Comment #6
andypostFiled for #5 #3543835: Clean up PHP_VERSION_ID conditions for unsupported PHP versions
@mondrake yes, subclasses added in 8.4 so I checked and see that constants added as well
so I lowered version check but phpstan probably has no valid stubs and can't find this classes, probably because it consuming PHP version from composer where it's 8.3
Comment #7
andypostmaybe instead of inline comment better to update phpstan's baseline?
Comment #8
mondrakeI think inline ignores are ok in this case. RTBC
Comment #9
catchYeah I can also live with the inline ignores - it's a very specific case and we can remove them as soon as we require PHP 8.5.
Committed/pushed to 11.x, thanks!
Comment #12
catch