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 3f5686b commit c0074f1Copy full SHA for c0074f1
compiler/build/scoper.inc.php
@@ -30,13 +30,19 @@
30
$stubs[] = $file->getPathName();
31
}
32
33
-exec('git rev-parse --short HEAD', $gitCommitOutputLines, $gitExitCode);
34
-if ($gitExitCode !== 0) {
35
- die('Could not get Git commit');
+if ($_SERVER['PHAR_CHECKSUM'] ?? false) {
+ $prefix = '_PHPStan_checksum';
+} else {
36
+ exec('git rev-parse --short HEAD', $gitCommitOutputLines, $gitExitCode);
37
+ if ($gitExitCode !== 0) {
38
+ die('Could not get Git commit');
39
+ }
40
+
41
+ $prefix = sprintf('_PHPStan_%s', $gitCommitOutputLines[0]);
42
43
44
return [
- 'prefix' => sprintf('_PHPStan_%s', $gitCommitOutputLines[0]),
45
+ 'prefix' => $prefix,
46
'finders' => [],
47
'files-whitelist' => $stubs,
48
'patchers' => [
0 commit comments