Tried what you suggested with type hinting on those two functions but getRequest() still shows up as being deprecated in PhpStorm.