Updated to coding-standard library v1.2.2

This commit is contained in:
Alejandro Celaya
2019-08-01 19:49:54 +02:00
parent 3562afc2bd
commit aff1df32f2
63 changed files with 78 additions and 83 deletions

View File

@@ -19,14 +19,14 @@ class VerifyAuthenticationException extends RuntimeException
string $publicMessage,
string $message = '',
int $code = 0,
Throwable $previous = null
?Throwable $previous = null
) {
parent::__construct($message, $code, $previous);
$this->errorCode = $errorCode;
$this->publicMessage = $publicMessage;
}
public static function withError(string $errorCode, string $publicMessage, Throwable $prev = null): self
public static function withError(string $errorCode, string $publicMessage, ?Throwable $prev = null): self
{
return new self(
$errorCode,