PHP - static type checking a-la PhpStorm
问题 I am a strongly-typed language supporter but I am working on a big PHP project. I have been using PhpStorm and I love the extra type hinting you can provide, with comments like these: /** @var \Payments $payment */ /** @property \Payments $payment */ PhpStorm is great because it gives you some warning when types don't match. I was wondering if it is possible to have this kind of check also statically, outside of PhpStorm. Some kind of command line precompiler that would go through the code,