From 33f517333f9161c9f994adb6b2e06faebf3286d6 Mon Sep 17 00:00:00 2001 From: sunxyw Date: Tue, 12 Apr 2022 17:13:17 +0800 Subject: [PATCH] fix unhandled exception --- src/ZM/Container/WorkerContainer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ZM/Container/WorkerContainer.php b/src/ZM/Container/WorkerContainer.php index e0d48f2e..6a37b447 100644 --- a/src/ZM/Container/WorkerContainer.php +++ b/src/ZM/Container/WorkerContainer.php @@ -334,7 +334,7 @@ class WorkerContainer implements ContainerInterface try { $reflection = new ReflectionClass($concrete); } catch (ReflectionException $e) { - throw new EntryResolutionException("指定的类 {$concrete} 不存在"); + throw new EntryResolutionException("指定的类 {$concrete} 不存在", 0, $e); } if (!$reflection->isInstantiable()) {