php-8.0.30-src/Zend/tests/short_echo_as_identifier.phpt

16 lines
240 B
PHP

--TEST--
<?= cannot be used as an identifier
--FILE--
<?php
trait T {
public function x() {}
}
class C {
use T {
x as y?><?= as my_echo;
}
}
?>
--EXPECTF--
Parse error: Cannot use "<?=" as an identifier in %s on line %d