kphp
kphp copied to clipboard
[Bug] Incorrect value in __CLASS__ with trait class
KPHP display trait class name in __CLASS__
, but should display original.
Code Example:
trait Test {
public function test() {
echo __CLASS__;
}
}
class Bu {
use Test;
}
(new Bu())->test():
Current result:
Test
Expected result:
Bu