Page MenuHomeSealhub

conditional-usage.lint-test
No OneTemporary

Authored By
Unknown
Size
531 B
Referenced Files
None
Subscribers
None

conditional-usage.lint-test

<?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
warning:16:3
~~~~~~~~~~
~~~~~~~~~~
{
"config": {
"xhpast.php-version": "5.3.0"
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Nov 28, 02:08 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1209739
Default Alt Text
conditional-usage.lint-test (531 B)

Event Timeline