1<?php
2
3f()[0];
4    m()[0];
5
6// The check above should be this, see T4334.
7// $o->m()[0];
8
9final class SomeClass extends Phobject {
10  public function someMethod() {
11    return function () {
12      $this->someOtherMethod();
13    };
14  }
15
16  public static function someStaticMethod() {
17    return function () {
18      self::someOtherMethod();
19    };
20  }
21}
22
230b1;
24
25[];
26
27~~~~~~~~~~
28error:3:5:XHP45:PHP Compatibility
29error:4:9:XHP45:PHP Compatibility
30error:12:7:XHP45:PHP Compatibility
31error:18:7:XHP45:PHP Compatibility
32error:23:1:XHP45:PHP Compatibility
33error:25:1:XHP45:PHP Compatibility
34~~~~~~~~~~
35~~~~~~~~~~
36{
37  "config": {
38    "xhpast.php-version": "5.3.0"
39  }
40}
41