Home GnuPG

Don't warn about use of "Throwable" under PHP5
0a4487d37cd7Unpublished

Unpublished Commit ยท Learn More

Publishing Disabled: All publishing is disabled for this repository.

Description

Don't warn about use of "Throwable" under PHP5

Summary:
Ref T12855. Throwable does not exist in PHP5, but can be used safely in this construct, at a minimum:

} catch (Exception $ex) {
} catch (Throwable $ex) {

We could heavily overachive here by trying to make sure that uses of Throwable were all safe, but I suspect we'll end up with about 15 uses and never really have problems with this. Until this is a real problem, just stop the analyzer from complaining about Throwable and Error.

Test Plan:

  • Changed Throwable to Throwablez.
  • Ran arc lint.
  • Got a lint error.
  • Added Throwablez to whitelist.
  • (Prodded some caches.)
  • No more lint error.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12855

Differential Revision: https://secure.phabricator.com/D18151

Details

Provenance
epriestley <git@epriestley.com>Authored on Jun 23 2017, 5:52 PM
marcusPushed on Jun 27 2017, 9:06 PM
Parents
rPHUTILfa993854745c: If the overseer can't update the PID file, just move on
Branches
Unknown
Tags
Unknown
References
HEAD -> master

Event Timeline

epriestley <git@epriestley.com> committed rPHUTIL0a4487d37cd7: Don't warn about use of "Throwable" under PHP5 (authored by epriestley <git@epriestley.com>).Jun 23 2017, 6:30 PM