~ubuntu-branches/ubuntu/wily/phabricator/wily

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php

if (function_exists('array_column')) {
  array_column(array(), '');
  json_last_error_msg();
} else {
  array_column(array(), '');
}

if (class_exists('CURLFile')) {
  new CURLFile('');
  new DateTimeImmutable();
}

if (function_exists('json_last_error_msg'))
  json_last_error_msg();

// These shouldn't fatal.
if (SomeClass::someStaticMethod($param)) {}
$var = 'some_func';
if ($var()) {}
~~~~~~~~~~
error:5:3
error:7:3
error:12:7
~~~~~~~~~~
~~~~~~~~~~
{"config": {"xhpast.php-version": "5.3.0"}}