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