This commit is contained in:
as2252258@163.com
2021-02-23 00:33:45 +08:00
parent e9f1312b56
commit b84ca315b6
+3
View File
@@ -124,6 +124,9 @@ class Annotation extends Component
if (empty($reflect)) {
return [];
}
if (!$reflect->isInstantiable()) {
return [];
}
$construct = $reflect->getConstructor();
if (!empty($construct) && count($params = $construct->getParameters()) > 0) {