Issue #3298923 by andypost, Berdir: Fix ProtectedUserFieldConstraintValidatorTest to not trigger deprecations on PHP 8.2