mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-03-03 20:49:41 +00:00
Specify \Throwable explicitly in ConvertSubjectException constructor for improved type clarity.
This commit is contained in:
@@ -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)),
|
||||
|
||||
Reference in New Issue
Block a user