Skip to content

Commit 5c7717c

Browse files
author
Greg Bowler
authored
fix: deprecation notices (#503)
* fix: deprecation notice - explicit 200 OK * fix: deprecation notices in internal deps fixes #499
1 parent a5dc128 commit 5c7717c

File tree

2 files changed

+52
-45
lines changed

2 files changed

+52
-45
lines changed

composer.lock

Lines changed: 50 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Middleware/Lifecycle.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
use Gt\Config\ConfigSection;
55
use Gt\Http\RequestFactory;
6-
use Gt\Http\ResponseStatusException\ClientError\HttpNotFound;
6+
use Gt\Http\StatusCode;
77
use Gt\Logger\Log;
88
use Gt\WebEngine\Debug\Timer;
99
use Psr\Http\Message\ResponseInterface;
@@ -97,7 +97,7 @@ public function finish(
9797
Timer $timer,
9898
ConfigSection $appConfig
9999
):void {
100-
http_response_code($response->getStatusCode());
100+
http_response_code($response->getStatusCode() ?? StatusCode::OK);
101101

102102
foreach($response->getHeaders() as $key => $value) {
103103
$stringValue = implode(", ", $value);

0 commit comments

Comments
 (0)