Skip to content

Commit

Permalink
Merge branch '9.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jul 25, 2021
2 parents d4ca6f8 + 7417cba commit cf04c15
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions build/scripts/phar-version.php
@@ -1,20 +1,21 @@
#!/usr/bin/env php
<?php declare(strict_types=1);

if (!isset($argv[1]) || !isset($argv[2])) {
if (!isset($argv[1], $argv[2])) {
exit(1);
}

\file_put_contents(
__DIR__ . '/../tmp/phar/phpunit/Runner/Version.php',
\str_replace(
'private static $pharVersion;',
'private static $pharVersion = "' . $argv[1] . '";',
'private static $pharVersion = \'\';',
'private static $pharVersion = \'' . $argv[1] . '\';',
\file_get_contents(__DIR__ . '/../tmp/phar/phpunit/Runner/Version.php')
)
),
\LOCK_EX
);

if ($argv[2] == 'release') {
if ($argv[2] === 'release') {
print $argv[1];
} else {
print $argv[2];
Expand Down

0 comments on commit cf04c15

Please sign in to comment.