It seems like $this->getLocator()->redis()->client() can also be of type Xervice\Core\Client\EmptyClient; however, parameter $client of Xervice\Redis\Session\Re...nHandler::__construct() does only seem to accept Xervice\Redis\RedisClient, maybe add an additional type check?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation