mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Currently, this is only handled for the "unexpected token" part of the message, but not the "expected" part. Fixes GH-18026 Closes GH-18101
13 lines
223 B
PHP
13 lines
223 B
PHP
--TEST--
|
|
GH-18026: Confusing "amp" reference in parser error
|
|
--FILE--
|
|
<?php
|
|
|
|
class Demo {
|
|
private (set) mixed $v1;
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected token ")", expecting token "&" in %s on line %d
|