1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Update PsalmRunnerTrait.php

This commit is contained in:
Roland Franssen :) 2023-07-01 13:36:42 +02:00 committed by GitHub
parent 7cf87b28dc
commit f0e2856963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,9 @@ trait PsalmRunnerTrait
bool $relyOnConfigDir = true
): array {
// Ensure CI agnostic output
array_unshift($args, '--output-format=console');
if (!in_array('--init', $args, true)) {
array_unshift($args, '--output-format=console');
}
// As config files all contain `resolveFromConfigFile="true"` Psalm
// shouldn't need to be run from the same directory that the code being