mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-13 09:37:21 +01:00
feb6bf7a0c
This looks like a very old bug in the pretty printer that showed up in PHP 8 tests.
25 lines
319 B
Plaintext
25 lines
319 B
Plaintext
Uniform variable syntax
|
|
-----
|
|
<?php
|
|
|
|
(function() {})();
|
|
array('a', 'b')()();
|
|
A::$b::$c;
|
|
$A::$b[$c]();
|
|
$A::{$b[$c]}();
|
|
A::$$b[$c]();
|
|
($a->b)();
|
|
(A::$b)();
|
|
('a' . 'b')::X;
|
|
-----
|
|
!!php7
|
|
(function () {
|
|
})();
|
|
array('a', 'b')()();
|
|
A::$b::$c;
|
|
$A::$b[$c]();
|
|
$A::{$b[$c]}();
|
|
A::${$b}[$c]();
|
|
($a->b)();
|
|
(A::$b)();
|
|
('a' . 'b')::X; |