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