We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 621e97a commit e699999Copy full SHA for e699999
src/functions.php
@@ -36,6 +36,12 @@ function create_application(): Application
36
37
function get_php_scoper_version(): string
38
{
39
+ // Since PHP-Scoper relies on COMPOSER_ROOT_VERSION the version parsed by PackageVersions, we rely on Box
40
+ // placeholders in order to get the right version for the PHAR.
41
+ if (0 === strpos(__FILE__, 'phar:')) {
42
+ return '@git_version_placeholder@';
43
+ }
44
+
45
$rawVersion = Versions::getVersion('humbug/php-scoper');
46
47
[$prettyVersion, $commitHash] = explode('@', $rawVersion);
0 commit comments