Skip to content

Commit

Permalink
Fixed whitespace issue
Browse files Browse the repository at this point in the history
  • Loading branch information
siad007 authored Jan 24, 2025
1 parent 16d20fe commit 346f00b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Phing/Phing.php
Original file line number Diff line number Diff line change
Expand Up @@ -614,17 +614,17 @@ public static function getPhingVersion(): string
if (null === $versionPath) {
throw new ConfigurationException('No VERSION.TXT file found; try setting phing.home environment variable.');
}

try { // try to read file
$file = new File($versionPath);
$reader = new FileReader($file);
$phingVersion = trim($reader->read());
} catch (IOException $iox) {
throw new ConfigurationException("Can't read version information file");
}

$basePath = dirname(__DIR__, 2);

$version = new Version($phingVersion, $basePath);
self::$phingShortVersion = (method_exists($version, 'asString') ? $version->asString() : $version->getVersion());

Expand Down

0 comments on commit 346f00b

Please sign in to comment.