Skip to content
Snippets Groups Projects
Commit 107d460f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix init

parent 81e0dabc
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@ final class Init extends Command
$config->set('php', array_combine(
SupportedPHPVersions::getDefaultVersions(),
array_map(
fn(string $version): int => SupportedPHPVersions::mapPort($version),
fn(string $version): array => SupportedPHPVersions::mapPort($version),
SupportedPHPVersions::getDefaultVersions()
)
));
......
......@@ -25,7 +25,7 @@ final class SupportedPHPVersions
return self::DEFAULT;
}
public static function mapPort(string $version): int
public static function mapPort(string $version): array
{
if (!isset(self::CONFIGURATION[$version])) {
throw new \Exception('Unsupported php version');
......
......@@ -49,7 +49,7 @@ $log = new LogParser(__DIR__ . '/../logs/php/error.log');
</td>
<?php foreach ($versions as $version => [$port, $sslPort]): ?>
<td>
<a href="https://localhost:<?= $port ?>/<?= htmlentities($path) ?>">
<a href="http://localhost:<?= $port ?>/<?= htmlentities($path) ?>">
<?= htmlentities($version) ?>
</a>
<a href="https://localhost:<?= $sslPort ?>/<?= htmlentities($path) ?>">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment