<?php
namespace Concrete\Test {
use DerpFoo;
class Test {
public function __construct(Concrete\Foo\FooInterface $foo) {}
}
$f = new Test(new \Concrete\BetterFoo\BetterFoo);
}
namespace Concrete\Foo {
class Foo implements FooInterface {
public function Derp() {}
}
interface FooInterface {
public function Derp();
}
class_alias('\Concrete\Foo\Foo', 'DerpFoo');
}
namespace Concrete\BetterFoo {
class BetterFoo extends \Concrete\Foo\Foo implements FooInterface {}
}
Fatal error: Uncaught Error: Class "Concrete\BetterFoo\BetterFoo" not found in /in/N0r64:9
Stack trace:
#0 {main}
thrown in /in/N0r64 on line 9
Process exited with code 255.
Fatal error: Uncaught Error: Class 'Concrete\BetterFoo\BetterFoo' not found in /in/N0r64:9
Stack trace:
#0 {main}
thrown in /in/N0r64 on line 9
Process exited with code 255.