Skip to content

Commit

Permalink
Change name package
Browse files Browse the repository at this point in the history
  • Loading branch information
luzrain committed Nov 17, 2024
1 parent a1dedfb commit 73e98e5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

final class Server
{
public const PACKAGE = 'luzrain/phpstreamserver';
public const PACKAGE = 'phpstreamserver/phpstreamserver';
public const NAME = 'PHPStreamServer';
public const SHORTNAME = 'phpss';
public const TITLE = '🌸 PHPStreamServer - PHP application server';
Expand Down Expand Up @@ -63,7 +63,11 @@ public function run(): int
public static function getVersion(): string
{
static $version;
return $version ??= InstalledVersions::getVersion(self::PACKAGE);
try {
return $version ??= InstalledVersions::getVersion(self::PACKAGE);
} catch (\OutOfBoundsException) {
return $version ??= '???';
}
}

public static function getVersionString(): string
Expand Down

0 comments on commit 73e98e5

Please sign in to comment.