Page MenuHomeSealhub

conditional-usage.lint-test
No OneTemporary

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
Wed, Aug 13, 20:16 (1 d, 12 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
874533
Default Alt Text
conditional-usage.lint-test (519 B)

Event Timeline