🔧
This commit is contained in:
@@ -25,7 +25,7 @@ class MethodNotAllowedException extends \RuntimeException implements ExceptionIn
|
||||
/**
|
||||
* @param string[] $allowedMethods
|
||||
*/
|
||||
public function __construct(array $allowedMethods, string $message = '', int $code = 0, \Throwable $previous = null)
|
||||
public function __construct(array $allowedMethods, string $message = '', int $code = 0, ?\Throwable $previous = null)
|
||||
{
|
||||
$this->allowedMethods = array_map('strtoupper', $allowedMethods);
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ class MissingMandatoryParametersException extends \InvalidArgumentException impl
|
||||
* @param string[] $missingParameters
|
||||
* @param int $code
|
||||
*/
|
||||
public function __construct(string $routeName = '', $missingParameters = null, $code = 0, \Throwable $previous = null)
|
||||
public function __construct(string $routeName = '', $missingParameters = null, $code = 0, ?\Throwable $previous = null)
|
||||
{
|
||||
if (\is_array($missingParameters)) {
|
||||
$this->routeName = $routeName;
|
||||
|
||||
Reference in New Issue
Block a user