bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
550 stars 161 forks source link

PHP 8.2+ Deprecation warnings #3524

Open jackbentley opened 1 month ago

jackbentley commented 1 month ago

Receiving the following deprecation warnings when running on PHP 8.3:

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/Directive/OrderDirective.php on line 137
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 46
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 50
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 54
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 58
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 66
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 82
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 82
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 82
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Storage/QueryParameterParser.php on line 86
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Twig/ContentExtension.php on line 594
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in vendor/bolt/core/src/Twig/HtmlExtension.php on line 92

This was deprecated in PHP 8.2 apparently: https://php.watch/versions/8.2/$%7Bvar%7D-string-interpolation-deprecated

Details

Question Answer
Relevant Bolt Version 5.1.24
Install type Composer install
BC Break no
PHP version 8.3
Web server cPanel
For UX/UI issues N/A

Reproduction

Load any page