Skip to content

Commit

Permalink
fix: deprecation notices (#503)
Browse files Browse the repository at this point in the history
* fix: deprecation notice - explicit 200 OK

* fix: deprecation notices in internal deps
fixes #499
  • Loading branch information
g105b authored Feb 26, 2022
1 parent a5dc128 commit 5c7717c
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 45 deletions.
93 changes: 50 additions & 43 deletions composer.lock

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

4 changes: 2 additions & 2 deletions src/Middleware/Lifecycle.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

use Gt\Config\ConfigSection;
use Gt\Http\RequestFactory;
use Gt\Http\ResponseStatusException\ClientError\HttpNotFound;
use Gt\Http\StatusCode;
use Gt\Logger\Log;
use Gt\WebEngine\Debug\Timer;
use Psr\Http\Message\ResponseInterface;
Expand Down Expand Up @@ -97,7 +97,7 @@ public function finish(
Timer $timer,
ConfigSection $appConfig
):void {
http_response_code($response->getStatusCode());
http_response_code($response->getStatusCode() ?? StatusCode::OK);

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

0 comments on commit 5c7717c

Please sign in to comment.