Test Plan: Didn't see a fatal in new test case.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D4783
$statics = $root->selectDescendantsOfType('n_CLASS_STATIC_ACCESS');
foreach ($statics as $static) {
- $name = $static->getChildOfType(0, 'n_CLASS_NAME');
+ $name = $static->getChildByIndex(0);
+ if ($name->getTypeName() != 'n_CLASS_NAME') {
+ continue;
+ }
if ($name->getConcreteString() == 'static') {
$this->raiseLintAtNode(
$name,
static::m();
1 ? 1 : 2;
1 ?: 2;
+$a = 'stdClass';
+$a::m();
~~~~~~~~~~
disabled:3:1
disabled:4:5
disabled:6:3
disabled:7:3
disabled:8:1
-disabled:10:1
\ No newline at end of file
+disabled:10:1