The error was obvious. The view did not exist !
I didn't know that PHPstan would go so far as to check the existence of resources.