Last active
December 11, 2015 18:38
-
-
Save ronan-gloo/4642427 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 | |
// Error: Trait method init has not been applied... | |
class Node implements NodeInterface { | |
use Component\Attribute, | |
Component\Manipulation { | |
Component\Attribute::init as protected attributes; | |
Component\Manipulation::init as protected manipulation; | |
} | |
} | |
// ça marche très bien.. | |
class Node implements NodeInterface { | |
use Component\Attribute, | |
Component\Manipulation { | |
Component\Attribute::__construct as protected attributes; | |
Component\Manipulation::__construct as protected manipulation; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment