Skip to content

Commit

Permalink
tweak: internal status code could be null
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jul 20, 2023
1 parent 677c456 commit de03587
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 36 deletions.
74 changes: 39 additions & 35 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function redirect(

/** @inheritDoc */
public function getStatusCode():int {
return $this->statusCode;
return $this->statusCode ?? 0;
}

/** @inheritDoc */
Expand Down

0 comments on commit de03587

Please sign in to comment.