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 187c319 commit a05604eCopy full SHA for a05604e
src/Symfony/Component/HttpFoundation/Request.php
@@ -191,7 +191,7 @@ class Request
191
protected $session;
192
193
/**
194
- * @var string
+ * @var string|null
195
*/
196
protected $locale;
197
@@ -1452,7 +1452,7 @@ public function setLocale(string $locale)
1452
1453
public function getLocale()
1454
{
1455
- return null === $this->locale ? $this->defaultLocale : $this->locale;
+ return $this->locale ?? $this->defaultLocale;
1456
}
1457
1458
0 commit comments