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