mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
9fbf316d38
Summary: Fixed various linter issues that were identified by running `arc lint --everything`. - Removed trailing whitespace. - Added newline at EOF. - Added whitespace after `if` statement Test Plan: N/A Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: aurelijus, Korvin, epriestley, aran Differential Revision: https://secure.phabricator.com/D8337
56 lines
825 B
Text
56 lines
825 B
Text
<?php
|
|
|
|
// This file has diverse symbol declarations and requirements, and can be used
|
|
// to test changes to phutil_symbols.php.
|
|
|
|
/**
|
|
* @phutil-external-symbol function ext_func
|
|
* @phutil-external-symbol class ExtClass
|
|
* @phutil-external-symbol interface ExtInterface
|
|
*/
|
|
ext_func();
|
|
new ExtClass();
|
|
class L implements ExtInterface { }
|
|
|
|
function f() { }
|
|
|
|
(function () {
|
|
// Anonymous function.
|
|
});
|
|
|
|
g();
|
|
$g();
|
|
$$g();
|
|
|
|
X::f();
|
|
call_user_func();
|
|
call_user_func('h');
|
|
call_user_func($var);
|
|
|
|
class A { }
|
|
class C extends B { }
|
|
class D extends C { }
|
|
|
|
new U();
|
|
V::m();
|
|
W::$n;
|
|
P::CONST;
|
|
|
|
interface ILocal extends IForeign { }
|
|
class CLocal extends INonlocal { }
|
|
|
|
strtoupper('');
|
|
|
|
|
|
// Various magic things.
|
|
|
|
die($x);
|
|
empty($x);
|
|
isset($x);
|
|
echo($x);
|
|
print($x);
|
|
exit($x);
|
|
include($x);
|
|
include_once($x);
|
|
require($x);
|
|
require_once($x);
|