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

OPTASY created an issue. See original summary.

optasy’s picture

Attached a patch for fixing this

optasy’s picture

Status: Active » Needs review

  • shelane committed d119a270 on 5.3.x authored by OPTASY
    Issue #3395400 by OPTASY: PHP 8.2 Deprecation messages at ./src/Plugin/...

  • shelane committed d119a270 on 8.x-3.x authored by OPTASY
    Issue #3395400 by OPTASY: PHP 8.2 Deprecation messages at ./src/Plugin/...
shelane’s picture

Status: Needs review » Fixed

Thanks. I have found similar code on other styles. I'll address in a separate issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.