Skip to content

Commit

Permalink
Refactor DestinationMissingException constructor signature
Browse files Browse the repository at this point in the history
  • Loading branch information
upwebdesign committed Sep 7, 2024
1 parent bf4ba5a commit b31852c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/Exceptions/DestinationMissingException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,21 @@

namespace CodeGreenCreative\SamlIdp\Exceptions;

use InvalidArgumentException;
use Throwable;
use InvalidArgumentException;

class DestinationMissingException extends InvalidArgumentException
{
/**
* [__construct description]
* @param string|null $message [description]
* @param Throwable|null $previous [description]
* @param array $headers [description]
* @param int|integer $code [description]
*
* @param string|null $message [description]
* @param Throwable|null $previous [description]
* @param array $headers [description]
* @param int|int $code [description]
*/
public function __construct(string $message = null, Throwable $previous = null)
public function __construct(?string $message, ?Throwable $previous = null)
{
parent::__construct($message, $previous);
parent::__construct($message, 0, $previous);
}
}

0 comments on commit b31852c

Please sign in to comment.