Skip to content

Commit 401e952

Browse files
authored
Merge pull request symfony#109 from maidmaid/fix-hostname
Fix hostname option
2 parents c93fa3c + c298a5c commit 401e952

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PantherTestCaseTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static function startWebServer(array $options = []): void
103103

104104
$options = [
105105
'webServerDir' => $options['webServerDir'] ?? static::$webServerDir ?? $_SERVER['PANTHER_WEB_SERVER_DIR'] ?? self::$defaultOptions['webServerDir'],
106-
'hostname' => $options['webServerDir'] ?? self::$defaultOptions['hostname'],
106+
'hostname' => $options['hostname'] ?? self::$defaultOptions['hostname'],
107107
'port' => (int) ($options['port'] ?? $_SERVER['PANTHER_WEB_SERVER_PORT'] ?? self::$defaultOptions['port']),
108108
'router' => $options['router'] ?? $_SERVER['PANTHER_WEB_SERVER_ROUTER'] ?? self::$defaultOptions['router'],
109109
];

0 commit comments

Comments
 (0)