We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2d4ef7 commit 50b0de4Copy full SHA for 50b0de4
2 files changed
composer.json
@@ -22,7 +22,7 @@
22
}
23
],
24
"extra": {
25
- "class": "Xact\\PHPStan\\Plugin"
+ "class": "Xact\\PHPStan\\Dev\\Plugin"
26
},
27
"require-dev": {
28
"composer/composer": "^2.5"
src/Plugin.php
@@ -51,5 +51,9 @@ public function extractPHPStan(): void
51
$phar = new Phar($pharPath);
52
$phar->extractTo($extractPath);
53
54
+
55
+ if (!file_exists($extractPath) || !file_exists("{$extractPath}/src")) {
56
+ throw new Exception("Could not find phpstan/src after extracting the .phar file.");
57
+ }
58
59
0 commit comments