kphp
kphp copied to clipboard
Fix class name with trait bug
Information
- Type: Bugfix
- Issue: #434
Code
<?php
trait Test {
public function test() {
echo __CLASS__;
}
}
class Bu {
use Test;
}
(new Bu())->test();
Before
Test
After
Bu