Skip to content

PHP 8.2 deprecation notices

Getting these while running under PHP 8.2:

PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 423

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 423
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 441

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 441
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 451

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 451
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 459

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 459
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 477

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 477
PHP Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 487

Deprecated: Using ${var} in strings is deprecated, use {$var} instead in /var/www/html/vendor/consensus/behat-terminal-context/src/Context/TerminalContext.php on line 487

Looks like a quick search and replace fixes it.