Skip to content

Commit

Permalink
Merge pull request cakephp#17576 from cakephp/debug-output
Browse files Browse the repository at this point in the history
Add debug output to validate script.
markstory authored Feb 5, 2024
2 parents 393678a + 0370930 commit 7f3014c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion contrib/validate-split-packages-phpstan.php
Original file line number Diff line number Diff line change
@@ -40,7 +40,6 @@

$issues = [];
foreach ($packages as $path => $package) {
// For now, demo only
if (!file_exists($path . 'phpstan.neon.dist')) {
continue;
}
@@ -49,8 +48,12 @@
exec('cd ' . $path . ' && composer install && vendor/bin/phpstan analyze ./', $output, $exitCode);
if ($exitCode !== 0) {
$code = $exitCode;

$issues[] = $package . ': ' . PHP_EOL . implode(PHP_EOL, $output);
}
exec('cd ' . $path . ' && rm composer.lock && rm -rf vendor');
}

echo implode(PHP_EOL . PHP_EOL, $issues);

exit($code);

0 comments on commit 7f3014c

Please sign in to comment.