Skip to content

Commit 228488d

Browse files
minor #42490 More return type fixes (bis) (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- More return type fixes (bis) | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- c6a20b4e4d More return type fixes (bis)
2 parents 481bc10 + abf3faf commit 228488d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ public function getScheme()
939939
*
940940
* The "X-Forwarded-Port" header must contain the client port.
941941
*
942-
* @return int|string can be a string if fetched from the server bag
942+
* @return int|string|null Can be a string if fetched from the server bag
943943
*/
944944
public function getPort()
945945
{

Session/Storage/MetadataBag.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public function getLastUsed()
139139
public function clear()
140140
{
141141
// nothing to do
142+
return null;
142143
}
143144

144145
/**

0 commit comments

Comments
 (0)