Skip to content

Commit ce5cac2

Browse files
committed
Remove null from union type on error response
1 parent 6a01a4d commit ce5cac2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Response/ErrorIface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@
2828
*/
2929
interface ErrorIface extends BaseIface
3030
{
31-
public function getError(): null|Error\ErrObjectIface;
32-
public function withError(null|Error\ErrObjectIface $error): static;
31+
public function getError(): Error\ErrObjectIface;
32+
public function withError(Error\ErrObjectIface $error): static;
3333
}

0 commit comments

Comments
 (0)