You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On that line: https://github.com/slimphp/Slim-Psr7/blob/master/src/Uri.php#L301 I got error, because value passed is string "443".
Can we cast string to int and after that check if it is good for us value?
Value is passed starlight from $_SERVER['SERVER_PORT'] PHP Fatal error: Uncaught InvalidArgumentException: Uri port must be null or an integer between 1 and 65535 (inclusive) in vendor/slim/psr7/src/Uri.php:306
The text was updated successfully, but these errors were encountered:
LocalHeroPro
changed the title
$_SERVER['SERVER_PORT'] passed as string
$_SERVER['SERVER_PORT'] server port passed as string
Jul 4, 2023
On that line: https://github.com/slimphp/Slim-Psr7/blob/master/src/Uri.php#L301 I got error, because value passed is string "443".
Can we cast string to int and after that check if it is good for us value?
Value is passed starlight from $_SERVER['SERVER_PORT']
PHP Fatal error: Uncaught InvalidArgumentException: Uri port must be null or an integer between 1 and 65535 (inclusive) in vendor/slim/psr7/src/Uri.php:306
The text was updated successfully, but these errors were encountered: