<?php

f()[0];
    m()[0];

// The check above should be this, see T4334.
// $o->m()[0];

final class SomeClass extends Phobject {
  public function someMethod() {
    return function () {
      $this->someOtherMethod();
    };
  }

  public static function someStaticMethod() {
    return function () {
      self::someOtherMethod();
    };
  }
}

0b1;

[];

~~~~~~~~~~
error:3:5
error:4:9
error:12:7
error:18:7
error:23:1
error:25:1
~~~~~~~~~~
~~~~~~~~~~
{
  "config": {
    "xhpast.php-version": "5.3.0"
  }
}
