PHP 8.2: ${var} in strings is deprecated

Created on 26 January 2023, almost 2 years ago
Updated 26 August 2024, 3 months ago

I'm getting these issues for PHP 8.1 compatibility:

FILE: /video_embed_field/modules/video_embed_media/modules/vem_migrate_oembed/src/VemMigrate.php
---------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 4 LINES
---------------------------------------------------------------------------------------------------------------------------------
 109 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${field_name}
 109 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${field_name}
 110 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${field_name}
 110 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${field_name}
 114 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${field_name}
 115 | WARNING | Using ${var} in strings is deprecated since PHP 8.2, use {$var} instead. Found: ${field_name}
---------------------------------------------------------------------------------------------------------------------------------

It's a very minor and simple fix, just changing ${field_name} to {$field_name}.

📌 Task
Status

RTBC

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom littlepixiez

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024