$environment->port() Returns the correct port number kirby/src/Http/Environment.php#L819 $environment->port(): int|null Return type int|null Parent class Kirby\Http\Environment