parser/tests/fixtures/0019/code.php
azjezz 479f51913c
chore: remove build script
Signed-off-by: azjezz <azjezz@protonmail.com>
2022-12-05 18:36:04 +01:00

34 lines
698 B
PHP

<?php
namespace {
function globalFunc() {}
}
namespace foo {
$a = function () {};
$b = function (&$b) {};
$c = function &() {};
$d = function &(&$b) { return $b; };
$e = fn () => null;
$f = fn (&$b) => null;
$g = fn &() => null;
$h = fn &(&$b) => $b;
}
namespace bar {
$a = static function () {};
$b = static function (&$b) {};
$c = static function &() {};
$d = static function &(&$b) { return $b; };
$e = static fn () => null;
$f = static fn (&$b) => null;
$g = static fn &() => null;
$h = static fn &(&$b) => $b;
}
namespace baz {
function a(&$b) {}
function &b($b) { return $b; }
function &c() { return $b; }
}