php-src/Zend/tests/deprecate_dollar_brace_string_interpolation_1.phpt

12 lines
204 B
PHP

--TEST--
"${}" emits a deprecation
--FILE--
<?php
$foo = 'bar';
var_dump("${foo}");
?>
--EXPECTF--
Deprecated: Using ${var} in strings is deprecated, use {$var} instead in %s on line %d
string(3) "bar"