Repository navigation
Commit e165716
committed
Cover get_parent_class(self::class) inside a trait
self::class is not late static bound: inside a trait it is already the using class as a
constant class-string, indistinguishable from writing Bar::class, so it keeps the exact
parent while $this / static::class stay conservative.1 parent 8d3f5de commit e165716
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
0 commit comments