modify
This commit is contained in:
@@ -124,6 +124,9 @@ class Annotation extends Component
|
|||||||
if (empty($reflect)) {
|
if (empty($reflect)) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
if (!$reflect->isInstantiable()) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
$construct = $reflect->getConstructor();
|
$construct = $reflect->getConstructor();
|
||||||
if (!empty($construct) && count($params = $construct->getParameters()) > 0) {
|
if (!empty($construct) && count($params = $construct->getParameters()) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user