Specify \Throwable explicitly in ConvertSubjectException constructor for improved type clarity.

This commit is contained in:
2026-01-28 22:35:29 +01:00
parent 54e2777fa2
commit 23d23da6b3

View File

@@ -13,7 +13,7 @@ namespace Chill\MainBundle\Audit\Exception;
class ConvertSubjectException extends \LogicException
{
public function __construct(mixed $subject, ?Throwable $previous = null)
public function __construct(mixed $subject, ?\Throwable $previous = null)
{
parent::__construct(
sprintf('Could not convert object of type %s to an acceptable audit representation', is_object($subject) ? get_class($subject) : gettype($subject)),