parent
559a8860a0
commit
00023cc3de
3 changed files with 18 additions and 1 deletions
@ -0,0 +1,8 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
function variable_variable_with_array_dim(): void |
||||||
|
{ |
||||||
|
$foo = ['bar' => 'hello']; |
||||||
|
${$foo['bar']} = 'world'; |
||||||
|
echo $hello; |
||||||
|
} |
||||||
@ -0,0 +1,9 @@ |
|||||||
|
<?php |
||||||
|
|
||||||
|
class VariableVariableTest extends \BaseTest |
||||||
|
{ |
||||||
|
public function testVariableVariableWithArrayDimThrowsUnsupportedError(): void |
||||||
|
{ |
||||||
|
$this->exec('The `$$` syntax is not supported', 'variable-variable-arraydim.php'); |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue