mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
1b4134c07b
[DOC] new resolution rules should be documented soon
20 lines
232 B
PHP
20 lines
232 B
PHP
--TEST--
|
|
Testing type-hinted lambda parameter inside namespace
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace foo;
|
|
|
|
$x = function (\stdclass $x = NULL) {
|
|
var_dump($x);
|
|
};
|
|
|
|
$x(NULL);
|
|
$x(new \stdclass);
|
|
|
|
?>
|
|
--EXPECTF--
|
|
NULL
|
|
object(stdClass)#%d (0) {
|
|
}
|