From 2a13889d5b2fe966a050b3f73bc3d0c303b4a41b Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Wed, 14 Dec 2022 11:21:50 +0800 Subject: [PATCH] Optimize (#90) Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com> --- src/TinkerCaster.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TinkerCaster.php b/src/TinkerCaster.php index f607042..55b78d1 100644 --- a/src/TinkerCaster.php +++ b/src/TinkerCaster.php @@ -10,10 +10,10 @@ */ namespace FriendsOfHyperf\Tinker; -use Exception; use ReflectionException; use ReflectionObject; use Symfony\Component\VarDumper\Caster\Caster; +use Throwable; class TinkerCaster { @@ -59,7 +59,7 @@ public static function castApplication($app) if (! is_null($val)) { $results[Caster::PREFIX_VIRTUAL . $property] = $val; } - } catch (Exception) { + } catch (Throwable) { } }