Skip to content

Commit

Permalink
NGSTACK-938 fix phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JakovKnezovicc committed Dec 13, 2024
1 parent 3bb02e4 commit 1d31252
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Action/CheckLinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ protected function doExecute(Config $config, IO $io, Repository $repository, Act
}

/**
* @param $directories string[]
* @param $directories array<string>
*
* @return array<string, mixed>
*/
Expand Down
5 changes: 4 additions & 1 deletion src/Action/CheckPrettier.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ protected function doExecute(Config $config, IO $io, Repository $repository, Act

$io->write(sprintf('<info>%s: </info>', $file->getPath()));

if ($result['success']) {
/** @var bool $isResultSuccess */
$isResultSuccess = $result['success'];

if ($isResultSuccess) {
$io->write($result['output']);
} else {
$io->writeError(sprintf('<error>%s</error>', $result['error']));
Expand Down

0 comments on commit 1d31252

Please sign in to comment.