Skip to content

Commit 9728be9

Browse files
committed
v0.1.1
1 parent 3bc3a16 commit 9728be9

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
All notable changes to `laravel-auth-recovery-codes` will be documented in this file
44

5+
## 0.1.1 - 2020-08-04
6+
7+
- fix type-hints in exceptions
8+
59
## 0.1.0 - 2020-07-31
610

711
- initial release

src/Exceptions/InvalidRecoveryCodeException.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77

88
class InvalidRecoveryCodeException extends OutOfBoundsException
99
{
10-
protected ?Recoverable $recoverable;
10+
protected $recoverable;
1111
protected ?string $recoveryCode;
1212

13-
public static function make(Recoverable $recoverable, string $recoveryCode): self
13+
public static function make($recoverable, string $recoveryCode): self
1414
{
1515
return (new static())
1616
->setRecoverable($recoverable)
1717
->setRecoveryCode($recoveryCode);
1818
}
1919

20-
public function setRecoverable(Recoverable $recoverable): self
20+
public function setRecoverable($recoverable): self
2121
{
2222
$this->recoverable = $recoverable;
2323

@@ -26,7 +26,7 @@ public function setRecoverable(Recoverable $recoverable): self
2626
return $this;
2727
}
2828

29-
public function getRecoverable(): ?Recoverable
29+
public function getRecoverable()
3030
{
3131
return $this->recoverable;
3232
}

src/Exceptions/MissingRecoveryCodesException.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,18 @@
22

33
namespace Astrotomic\AuthRecoveryCodes\Exceptions;
44

5-
use Astrotomic\AuthRecoveryCodes\Recoverable;
65
use OutOfBoundsException;
76

87
class MissingRecoveryCodesException extends OutOfBoundsException
98
{
10-
protected ?Recoverable $recoverable;
9+
protected $recoverable;
1110

12-
public static function make(Recoverable $model): self
11+
public static function make($model): self
1312
{
1413
return (new static())->setRecoverable($model);
1514
}
1615

17-
public function setRecoverable(Recoverable $model): self
16+
public function setRecoverable($model): self
1817
{
1918
$this->recoverable = $model;
2019

@@ -23,7 +22,7 @@ public function setRecoverable(Recoverable $model): self
2322
return $this;
2423
}
2524

26-
public function getRecoverable(): ?Recoverable
25+
public function getRecoverable()
2726
{
2827
return $this->recoverable;
2928
}

0 commit comments

Comments
 (0)