- Output for 8.0.1 - 8.0.26, 8.1.0 - 8.1.13, 8.2.0
- Parse error: syntax error, unexpected token "::", expecting "," or ";" in /in/V4kP2 on line 11
Process exited with code 255.
<?php
namespace A {
class C {
public static function c(): self { return new C(); }
}
}
namespace B {
use function \A\C::c as x;
var_dump(x());
}