Problem/Motivation
The assert_options()
is deprecated in upcoming PHP 8.3 so linter can't pass https://www.drupal.org/pift-ci-job/2719854
- https://wiki.php.net/rfc/assert-string-eval-cleanup
Steps to reproduce
/var/www/html/web $ php -r 'assert_options(1);'
PHP Deprecated: Function assert_options() is deprecated in Command line code on line 1
Deprecated: Function assert_options() is deprecated in Command line code on line 1
Proposed resolution
- provide replacement depending on PHP version
- update documentation and CR https://www.drupal.org/node/3105918 as assertions no longer a runtime setting
- add change record
Remaining tasks
- agree
- patch/review
- commit
User interface changes
no
API changes
TBD
Data model changes
no
Release notes snippet
no