modify plugin name

This commit is contained in:
2022-03-01 16:26:26 +08:00
parent 4af17359a7
commit ce6e38a27e
+5 -1
View File
@@ -199,7 +199,11 @@ class Container implements ContainerInterface
*/
public function propertyInject(ReflectionClass $reflect, $object): mixed
{
$properties = TargetManager::get($reflect->getName())->getPropertyAttribute();
$properties = TargetManager::get($reflect->getName());
if (is_null($properties)) {
return $object;
}
$properties = $properties->getPropertyAttribute();
foreach ($properties as $property) {
$attributes = $property->getAttributes();
foreach ($attributes as $attribute) {