Skip to content

Commit

Permalink
#54 change constructor type-hints of exceptions to match SPL Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
scrummer committed Feb 12, 2024
1 parent 3bf8963 commit 80e8fa5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/DynamicSearchBundle/Exception/NormalizerException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

final class NormalizerException extends \Exception
{
public function __construct(string $message, ?string $normalizerName = null, ?\Exception $previousException = null)
public function __construct(string $message, ?string $normalizerName = null, ?\Throwable $previousException = null)
{
$normalizerName = is_null($normalizerName) ? '' : sprintf(' (%s)', $normalizerName);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

final class OutputChannelException extends \Exception
{
public function __construct(string $type, string $message, ?\Exception $previousException = null)
public function __construct(string $type, string $message, ?\Throwable $previousException = null)
{
parent::__construct(sprintf('Output Channel "%s" Exception: %s', $type, $message), 0, $previousException);
}
Expand Down
2 changes: 1 addition & 1 deletion src/DynamicSearchBundle/Exception/ProviderException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

final class ProviderException extends \Exception
{
public function __construct(string $message, ?string $providerName = null, ?\Exception $previousException = null)
public function __construct(string $message, ?string $providerName = null, ?\Throwable $previousException = null)
{
$providerName = is_null($providerName) ? '' : sprintf(' (%s)', $providerName);

Expand Down

0 comments on commit 80e8fa5

Please sign in to comment.