From 3ce9ee662aafd97f0f69aa378f62e8606c9ea762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 24 Oct 2023 17:22:28 +0800 Subject: [PATCH] eee --- Inject/ContainerParams.php | 3 ++- Interface/InjectPropertyInterface.php | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Inject/ContainerParams.php b/Inject/ContainerParams.php index c654029..887ed40 100644 --- a/Inject/ContainerParams.php +++ b/Inject/ContainerParams.php @@ -5,6 +5,7 @@ declare(strict_types=1); namespace Kiri\Di\Inject; +use Exception; use Kiri\Di\Container; use Kiri\Di\Interface\InjectParameterInterface; @@ -23,7 +24,7 @@ class ContainerParams implements InjectParameterInterface /** * @return mixed|null - * @throws \Exception + * @throws Exception */ public function dispatch(string $class, string $method): mixed { diff --git a/Interface/InjectPropertyInterface.php b/Interface/InjectPropertyInterface.php index 0a06436..f078a4a 100644 --- a/Interface/InjectPropertyInterface.php +++ b/Interface/InjectPropertyInterface.php @@ -7,6 +7,11 @@ interface InjectPropertyInterface { + /** + * @param object $class + * @param string $property + * @return void + */ public function dispatch(object $class, string $property): void; }