PHP 8.2 Deprecation messages at ./src/Plugin/views/style/ViewsBootstrapGrid.php

Created on 19 October 2023, over 1 year ago

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

πŸ› Bug report
Status

Fixed

Version

5.3

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada optasy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024