Skip to content

Commit f3fcb82

Browse files
committed
Allow only native reflectors in AttributesUtil. Use ->reveal() when calling.
1 parent 6d1159d commit f3fcb82

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Inspector/FactoryInspector_AdapterAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
* {@inheritdoc}
4646
*/
4747
public function findInFactory(FactoryReflectionInterface $reflector): \Iterator {
48-
$attribute = AttributesUtil::getSingle($reflector, Adapter::class);
48+
$attribute = AttributesUtil::getSingle($reflector->reveal(), Adapter::class);
4949
if ($attribute === NULL) {
5050
return;
5151
}

src/Inspector/FactoryInspector_SelfAdapterAttribute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function findInFactory(FactoryReflectionInterface $reflector): \Iterator
4848
) {
4949
return;
5050
}
51-
$attribute = AttributesUtil::getSingle($reflector, SelfAdapter::class);
51+
$attribute = AttributesUtil::getSingle($reflector->reveal(), SelfAdapter::class);
5252
if ($attribute === NULL) {
5353
return;
5454
}

0 commit comments

Comments
 (0)