documentation - Lint dynamic return types in PHP

one text

Solution:

Although I would still like to know how to achieve this without changing the process itself, but I have solved this problem by simply using static classes and namespaces. The linting is great like that.

Source