Last active
November 21, 2018 05:51
-
-
Save noname007/1dbdcf49abc3c73f062b0d97297495ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
trait A | |
{ | |
public function b() | |
{ | |
echo __METHOD__; | |
} | |
} | |
class C | |
{ | |
use A; | |
public function b() | |
{ | |
echo __METHOD__; | |
A::b(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment