mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +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; |