diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 07ce1fb7..d4e2b1f1 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -193,7 +193,6 @@ class Annotation extends Component * @param string $class * @return ReflectionClass|null * @throws ReflectionException - * @throws NotFindClassException */ private function reflectClass(string $class): ?ReflectionClass { diff --git a/System/Di/Container.php b/System/Di/Container.php index c610a0a3..25a893c1 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -161,12 +161,13 @@ class Container extends BaseObject return $object; } - /** - * @param $class - * - * @return array - * @throws ReflectionException - */ + /** + * @param $class + * @param array $constrict + * @return array|null + * @throws NotFindClassException + * @throws ReflectionException + */ private function resolveDependencies($class, $constrict = []): ?array { if (!isset($this->_reflection[$class])) { @@ -215,11 +216,12 @@ class Container extends BaseObject } - /** - * @param $class - * @return mixed - * @throws ReflectionException - */ + /** + * @param $class + * @return ReflectionClass|null + * @throws NotFindClassException + * @throws ReflectionException + */ public function getReflect($class): ?ReflectionClass { $reflect = $this->_reflection[$class] ?? null;