1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-12-02 17:28:27 +01:00
PHP-Parser/test/code/prettyPrinter/constant_deref.test
Nikita Popov 8090531acd Fix pretty printing of const derefs for 5.x
(FOO)[0] is only supported on 7.x
2015-07-09 12:38:30 +02:00

14 lines
142 B
Plaintext

Constant/literal dereferencing
-----
<?php
FOO[0];
FOO::BAR[0];
'FOO'[0];
array(FOO)[0];
-----
FOO[0];
FOO::BAR[0];
'FOO'[0];
array(FOO)[0];