There seems to be quite a lot of static code analysis tools for PHP, could you please suggest the one, which can detect exceptions, which are thrown in the PHP code, but are
PHPLint seems to be the answer. For example, it parses
, which will never throw an exception (unless you're in the past), into:
BEGIN parsing of test-cSdHoW 1:
So that's exactly what I was asking for :) Adding a docblock and catching the exception results in no more errors or warnings from PHPLint.