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