mirror of
https://github.com/danog/parser.git
synced 2024-12-12 09:09:37 +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; }
|
|
}
|