We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbc500c commit 41dce07Copy full SHA for 41dce07
Factory/PsrHttpFactory.php
@@ -178,7 +178,7 @@ public function createResponse(Response $symfonyResponse): ResponseInterface
178
179
$headers = $symfonyResponse->headers->all();
180
$cookies = $symfonyResponse->headers->getCookies();
181
- if (!empty($cookies)) {
+ if ($cookies) {
182
$headers['Set-Cookie'] = [];
183
184
foreach ($cookies as $cookie) {
Tests/Fixtures/Uri.php
@@ -47,13 +47,13 @@ public function getScheme(): string
47
48
public function getAuthority(): string
49
{
50
- if (empty($this->host)) {
+ if (!$this->host) {
51
return '';
52
}
53
54
$authority = $this->host;
55
56
- if (!empty($this->userInfo)) {
+ if ($this->userInfo) {
57
$authority = $this->userInfo.'@'.$authority;
58
59
0 commit comments