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
Spoofchecker::setRestrictionLevel(): Argument #1 ($level) must be one of Spoofchecker::ASCII, Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE, Spoofchecker::SINGLE_HIGHLY_RESTRICTIVE, Spoofchecker::SINGLE_MODERATELY_RESTRICTIVE, Spoofchecker::SINGLE_MINIMALLY_RESTRICTIVE, or Spoofchecker::UNRESTRICTIVE
Spoofchecker::ASCII - is defined
Spoofchecker::SINGLE_SCRIPT_RESTRICTIVE - is defined
Spoofchecker::SINGLE_HIGHLY_RESTRICTIVE - NOT defined
Spoofchecker::SINGLE_MODERATELY_RESTRICTIVE - NOT defined
Spoofchecker::SINGLE_MINIMALLY_RESTRICTIVE - NOT defined
Spoofchecker::UNRESTRICTIVE - is defined
But I expected this output instead:
ValueError message only suggests class constants that exist
Activity
DanielEScherzer commentedon Nov 8, 2025
Presumably the fix is
Tested with https://3v4l.org/Gg9r9
The question is just what version of PHP should the fix be sent to - 8.3 or master? I'm happy to do the actual work
devnexen commentedon Nov 8, 2025
yes you would need to update the exception message in 8.3
Fix phpGH-20426: fix Spoofchecker::setRestrictionLevel() error
Fix GH-20426: fix Spoofchecker::setRestrictionLevel() error (#20427)
Merge branch 'PHP-8.3' into PHP-8.4
Merge branch 'PHP-8.4' into PHP-8.5
Merge branch 'PHP-8.5'