<?php
namespace Foo\Bar {
class Baz {
function __construct() {
var_dump(get_class());
}
}
}
namespace Foo {
class Bar {
function __construct() {
var_dump(get_class());
}
}
}
namespace {
use Foo\Bar;
new Bar();
new Bar\Baz();
}
Deprecated: Calling get_class() without arguments is deprecated in /in/b6EHi on line 12
string(7) "Foo\Bar"
Deprecated: Calling get_class() without arguments is deprecated in /in/b6EHi on line 5
string(11) "Foo\Bar\Baz"