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 ...@@ -32,7 +32,7 @@ final class Init extends Command
$config->set('php', array_combine( $config->set('php', array_combine(
SupportedPHPVersions::getDefaultVersions(), SupportedPHPVersions::getDefaultVersions(),
array_map( array_map(
fn(string $version): int => SupportedPHPVersions::mapPort($version), fn(string $version): array => SupportedPHPVersions::mapPort($version),
SupportedPHPVersions::getDefaultVersions() SupportedPHPVersions::getDefaultVersions()
) )
)); ));
......
...@@ -25,7 +25,7 @@ final class SupportedPHPVersions ...@@ -25,7 +25,7 @@ final class SupportedPHPVersions
return self::DEFAULT; return self::DEFAULT;
} }
public static function mapPort(string $version): int public static function mapPort(string $version): array
{ {
if (!isset(self::CONFIGURATION[$version])) { if (!isset(self::CONFIGURATION[$version])) {
throw new \Exception('Unsupported php version'); throw new \Exception('Unsupported php version');
......
...@@ -49,7 +49,7 @@ $log = new LogParser(__DIR__ . '/../logs/php/error.log'); ...@@ -49,7 +49,7 @@ $log = new LogParser(__DIR__ . '/../logs/php/error.log');
</td> </td>
<?php foreach ($versions as $version => [$port, $sslPort]): ?> <?php foreach ($versions as $version => [$port, $sslPort]): ?>
<td> <td>
<a href="https://localhost:<?= $port ?>/<?= htmlentities($path) ?>"> <a href="http://localhost:<?= $port ?>/<?= htmlentities($path) ?>">
<?= htmlentities($version) ?> <?= htmlentities($version) ?>
</a> </a>
<a href="https://localhost:<?= $sslPort ?>/<?= htmlentities($path) ?>"> <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