Skip to content

Commit

Permalink
fixing more tests and deprications
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-blom committed Nov 3, 2022
1 parent c407124 commit 1bccae0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"ocramius/package-versions": "2.6.0",
"symfony/apache-pack": "^1.0",
"symfony/console": "5.4.*",
"symfony/doctrine-bridge": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/flex": "^2.2",
"symfony/framework-bundle": "5.4.*",
Expand Down
2 changes: 1 addition & 1 deletion 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 public/index.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

use App\Kernel;
use Symfony\Component\Debug\Debug;
use Symfony\Component\ErrorHandler\Debug;
use Symfony\Component\HttpFoundation\Request;

require dirname(__DIR__).'/config/bootstrap.php';
Expand All @@ -13,7 +13,7 @@
}

if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR ^ Request::HEADER_X_FORWARDED_HOST);
}

if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
Expand Down
1 change: 0 additions & 1 deletion tests/Functional/Controller/UriControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public function testGetUriActionWithShortCode(): void
['HTTP_AUTHORIZATION' => '$ecretf0rt3st'],
$url
);

$this->assertEquals(201, $this->client->getResponse()->getStatusCode());

$shortCode = $this->client->getResponse()->getContent();
Expand Down

0 comments on commit 1bccae0

Please sign in to comment.