Problem/Motivation
I am installing a Drupal distribution (WxT) which depends on views_bootstrap 5.3.x and I am seeing these issues when installing the distribution on a docker container that has PHP 8.2 installed:
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 208
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 213
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 213
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/html/modules/contrib/views_bootstrap/src/Plugin/views/style/ViewsBootstrapGrid.php on line 215
Steps to reproduce
- Install views_bootstrap 5.3.x on any Drupal site that runs on top of PHP 8.2
Proposed resolution
- Refactor ./src/Plugin/views/style/ViewsBootstrapGrid.php to make it work with PHP 8.1/8.2
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #2
optasy commentedAttached a patch for fixing this
Comment #3
optasy commentedComment #6
shelaneThanks. I have found similar code on other styles. I'll address in a separate issue.