1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/gh18026.phpt
Ilija Tovilo 7d4ed8af03 Fix "expecting token" error for ampersand
Currently, this is only handled for the "unexpected token" part of the
message, but not the "expected" part.

Fixes GH-18026
Closes GH-18101
2025-03-23 16:26:30 +01:00

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