Skip to content

Commit 167042a

Browse files
authored
Merge pull request #7525 from kenjis/refactor-IncomingRequest-getLocale
refactor: remove unneeded code in IncomingRequest
2 parents a724f92 + a4de3e7 commit 167042a

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

phpstan-baseline.neon.dist

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,6 @@ parameters:
120120
count: 1
121121
path: system/HTTP/Files/UploadedFile.php
122122

123-
-
124-
message: "#^Property CodeIgniter\\\\HTTP\\\\IncomingRequest\\:\\:\\$locale \\(string\\) on left side of \\?\\? is not nullable\\.$#"
125-
count: 1
126-
path: system/HTTP/IncomingRequest.php
127-
128123
-
129124
message: "#^Property CodeIgniter\\\\HTTP\\\\Message\\:\\:\\$protocolVersion \\(string\\) on left side of \\?\\? is not nullable\\.$#"
130125
count: 1

system/HTTP/IncomingRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ public function setLocale(string $locale)
554554
*/
555555
public function getLocale(): string
556556
{
557-
return $this->locale ?? $this->defaultLocale;
557+
return $this->locale;
558558
}
559559

560560
/**

0 commit comments

Comments
 (0)