Skip to content

Instantly share code, notes, and snippets.

@ronan-gloo
Last active December 11, 2015 18:38
Show Gist options
  • Save ronan-gloo/4642427 to your computer and use it in GitHub Desktop.
Save ronan-gloo/4642427 to your computer and use it in GitHub Desktop.
<?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