]> khamidou — GitHub mirrors - arcanist.git/commit
Verify classes used in typehints
authorJakub Vrana <jakub@vrana.cz>
Wed, 5 Jun 2013 18:41:39 +0000 (11:41 -0700)
committerJakub Vrana <jakub@vrana.cz>
Wed, 5 Jun 2013 20:53:43 +0000 (13:53 -0700)
commit5336f4bcf0ba69b93dbd74057c9ace6efe50a60a
tree54344d1d228663e44e4469da9642f1ae870a705b
parente93726cb3b33109b8db675c1ea11b3d905ef2c5f
Verify classes used in typehints

Summary: Also support `SomeInterface::CONSTANT`.

Test Plan:
  interface I {
    const A = 1;
  }
  I::A;

  function f(stdClass $a, array $b, Iterator $c) {
  }

Linted Phabricator.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D6135
scripts/lib/PhutilLibraryMapBuilder.php
scripts/phutil_symbols.php
src/lint/linter/ArcanistPhutilLibraryLinter.php