File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 2727use Ubiquity \attributes \items \Transient ;
2828use Ubiquity \attributes \items \Validator ;
2929use Ubiquity \attributes \items \Yuml ;
30- use Ubiquity \creator \HasUsesTrait ;
3130
3231class AttributesEngine implements AnnotationsEngineInterface {
3332
@@ -99,7 +98,7 @@ public function registerAnnotations(array $nameClasses): void {
9998 public function getAnnotation (?object $ container , string $ key , array $ parameters = []): ?object {
10099 if (isset (self ::$ registry [$ key ])) {
101100 $ classname = self ::$ registry [$ key ];
102- if (isset ($ container ) && ($ container instanceof HasUsesTrait )) {
101+ if (isset ($ container ) && \method_exists ($ container, ' addUse ' )) {
103102 $ container ->addUse ($ classname );
104103 }
105104 $ reflect = new \ReflectionClass ($ classname );
You can’t perform that action at this time.
0 commit comments