Skip to content

Commit

Permalink
Uri's creation with string port instead of integer
Browse files Browse the repository at this point in the history
  • Loading branch information
ElGigi committed Apr 24, 2023
1 parent ef112c8 commit f683566
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. This projec
to [Semantic Versioning] (http://semver.org/). For change log format,
use [Keep a Changelog] (http://keepachangelog.com/).

## [1.3.1] - 2023-04-24

### Fixed

- Uri's creation with string port instead of integer

## [1.3.0] - 2023-04-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public static function makeServerRequest(): ServerRequestInterface
$requestUri = new Uri(
$_SERVER['REQUEST_SCHEME'] ?? '',
$_SERVER['HTTP_HOST'] ?? '',
$_SERVER['SERVER_PORT'] ?? 80,
(int)($_SERVER['SERVER_PORT'] ?? 80),
$path ?? '',
$queryString,
'',
Expand Down

0 comments on commit f683566

Please sign in to comment.