File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 20
20
class ResumeTokenException extends \Exception
21
21
{
22
22
/**
23
- * Thrown when a resume token is not found in a change document .
23
+ * Thrown when a resume token has an invalid type .
24
24
*
25
+ * @param mixed $value Actual value (used to derive the type)
25
26
* @return self
26
27
*/
27
- public static function notFound ( )
28
+ public static function invalidType ( $ value )
28
29
{
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 )) );
30
31
}
31
32
32
33
/**
33
- * Thrown when a resume token has an invalid type .
34
+ * Thrown when a resume token is not found in a change document .
34
35
*
35
- * @param mixed $value Actual value (used to derive the type)
36
36
* @return self
37
37
*/
38
- public static function invalidType ( $ value )
38
+ public static function notFound ( )
39
39
{
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 ' );
41
41
}
42
42
}
You can’t perform that action at this time.
0 commit comments