Skip to content

Commit

Permalink
fix: add return type to marshalHostAndPortFromHeader
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Jun 29, 2022
1 parent 8e20161 commit 52d7cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ServerRequestFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private static function marshalHttpsValue($https) : bool
* @return array Array of two items, host and port, in that order (can be
* passed to a list() operation).
*/
private static function marshalHostAndPortFromHeader($host)
private static function marshalHostAndPortFromHeader($host): array
{
if (is_array($host)) {
$host = implode(', ', $host);
Expand Down

0 comments on commit 52d7cf6

Please sign in to comment.