The FilterLocaleSwitchEvent constructor needs the request object in documentation.

Tha documentations is incorrect when using FilterLocaleSwitchEvent because it's missing the request object.