Hi!
To continue your example, if I tried to do this:
$reflect = new ReflectionClass("Baz");
it would not work, regardless of the namespace of the file that
statement appears in. I must instead do this:
$reflect = new ReflectionClass("Foo::Bar::Baz");
Right. You can use __NAMESPACE__ comp
Hi!
I'm installing a recent snap of 5.3 on my dev server. The app I'm
working on makes heavy use of reflection. How has reflection changed in
5.3 to address namespaces? What resolution rules apply when creating a
Namespaces should not have big influence on reflection, since namespace
is
Stanislav Malyshev wrote:
Hi!
I'm installing a recent snap of 5.3 on my dev server. The app I'm
working on makes heavy use of reflection. How has reflection changed
in 5.3 to address namespaces? What resolution rules apply when
creating a
Namespaces should not have big influence on refl
Hello,
I'm installing a recent snap of 5.3 on my dev server. The app I'm
working on makes heavy use of reflection. How has reflection changed in
5.3 to address namespaces? What resolution rules apply when creating a
ReflectionClass? If I try to create a ReflectionClass for a class that
is