idk.. it seems pretty clear..
The "${var}" and "${expr}" style of string interpolation is deprecated. Use "$var"/"{$var}" and "{${expr}}", respectively.
?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I notice here: https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation
They are talking about Variable variables which I have in another custom fromework. I get a data array for the view:
if (!empty($data)) {
foreach ($data as $variable => $value) {
${$variable} = $value;
}
unset($variable, $value);
}
I know laravel uses extract which does the same.
However with setting error_reporting(E_ALL); All still works fine, no deprecated warnings. I admit I don't totally understand from the link when a deprecated warning will show. And their example are using quotation marks, I have none.
Does anyone make sense if what's in the link, and is my usage of Variable variables okay?
And another link ==========================
https://www.php.net/manual/en/migration82.deprecated.php
They have this list:
I know laravel uses static::method as do I. Again I get no deprecated warnings. I also have places with self::method. So when would these usages cause a deprecated warning.
From what I read some of the people voting was confused. -- Thanks
these references are for string interpolation. Your example doesn't use string interpolation. Am I missing something?
$deprecated = "${string} interpolation?";
$theNewSexy = "{$string} interpolation?";
Please or to participate in this conversation.