Skip to content

Commit a46774d

Browse files
committed
Merge pull request #482
2 parents 041c0c4 + 5cd4578 commit a46774d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Exception/ResumeTokenException.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,23 @@
2020
class ResumeTokenException extends \Exception
2121
{
2222
/**
23-
* Thrown when a resume token is not found in a change document.
23+
* Thrown when a resume token has an invalid type.
2424
*
25+
* @param mixed $value Actual value (used to derive the type)
2526
* @return self
2627
*/
27-
public static function notFound()
28+
public static function invalidType($value)
2829
{
29-
return new static('Resume token not found in change document');
30+
return new static(sprintf('Expected resume token to have type "array or object" but found "%s"', gettype($value)));
3031
}
3132

3233
/**
33-
* Thrown when a resume token has an invalid type.
34+
* Thrown when a resume token is not found in a change document.
3435
*
35-
* @param mixed $value Actual value (used to derive the type)
3636
* @return self
3737
*/
38-
public static function invalidType($value)
38+
public static function notFound()
3939
{
40-
return new static(sprintf('Expected resume token to have type "array or object" but found "%s"', gettype($value)));
40+
return new static('Resume token not found in change document');
4141
}
4242
}

0 commit comments

Comments
 (0)