Skip to content

Commit

Permalink
Merge pull request #7525 from kenjis/refactor-IncomingRequest-getLocale
Browse files Browse the repository at this point in the history
refactor: remove unneeded code in IncomingRequest
  • Loading branch information
samsonasik authored May 30, 2023
2 parents a724f92 + a4de3e7 commit 167042a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,6 @@ parameters:
count: 1
path: system/HTTP/Files/UploadedFile.php

-
message: "#^Property CodeIgniter\\\\HTTP\\\\IncomingRequest\\:\\:\\$locale \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: system/HTTP/IncomingRequest.php

-
message: "#^Property CodeIgniter\\\\HTTP\\\\Message\\:\\:\\$protocolVersion \\(string\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
Expand Down
2 changes: 1 addition & 1 deletion system/HTTP/IncomingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ public function setLocale(string $locale)
*/
public function getLocale(): string
{
return $this->locale ?? $this->defaultLocale;
return $this->locale;
}

/**
Expand Down

0 comments on commit 167042a

Please sign in to comment.