mirror of
https://github.com/danog/parser.git
synced 2024-11-30 04:29:13 +01:00
479f51913c
Signed-off-by: azjezz <azjezz@protonmail.com>
34 lines
698 B
PHP
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; }
|
|
}
|