From 414f605f67c0c36f93eddd9bf0d718ff0bee17dc Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Wed, 3 Apr 2024 18:53:15 -0400 Subject: [PATCH] More abstraction to Dispatcher::containerException typehint --- flight/core/Dispatcher.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index fd3eac7..1d40f95 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -9,6 +9,7 @@ use flight\Engine; use InvalidArgumentException; use Psr\Container\ContainerInterface; use ReflectionFunction; +use Throwable; use TypeError; /** @@ -26,7 +27,7 @@ class Dispatcher public const FILTER_AFTER = 'after'; /** Exception message if thrown by setting the container as a callable method. */ - protected ?Exception $containerException = null; + protected ?Throwable $containerException = null; /** @var ?Engine $engine Engine instance. */ protected ?Engine $engine = null;