You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect when the value of a polyfilled PHP token collides with a value already used by an existing internal PHP token.
--SKIPIF--
<?php
if (version_compare(PHP_VERSION, "8.4", ">=")) {
echo "skip because tokens used in this test already exist in PHP 8.4 so we cannot test polyfilling them", PHP_EOL;
}
--FILE--
<?php
define('T_PUBLIC_SET', T_STRING);
require('src/Util/Tokens.php');
--EXPECTF--
Fatal error: Uncaught Exception: Externally polyfilled tokenizer constant value collision detected! T_PUBLIC_SET has the same value as T_STRING in %s:%d