Found when trying to enable PHP 7.4 as voting in Wikimedia production branches.
The inEventSample() code just blindly passes through the $sessionId input, but EventLogging expects this to be a hex string as it immediately uses it as such, and with PHP 7.4+ this is now enforced: