Skip to content

Commit a05604e

Browse files
bytestreamnicolas-grekas
authored andcommitted
Fix Request locale property doc types
1 parent 187c319 commit a05604e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/HttpFoundation/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ class Request
191191
protected $session;
192192

193193
/**
194-
* @var string
194+
* @var string|null
195195
*/
196196
protected $locale;
197197

@@ -1452,7 +1452,7 @@ public function setLocale(string $locale)
14521452
*/
14531453
public function getLocale()
14541454
{
1455-
return null === $this->locale ? $this->defaultLocale : $this->locale;
1455+
return $this->locale ?? $this->defaultLocale;
14561456
}
14571457

14581458
/**

0 commit comments

Comments
 (0)