Skip to content

Commit 1d31252

Browse files
NGSTACK-938 fix phpstan issues
1 parent 3bb02e4 commit 1d31252

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/Action/CheckLinter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function doExecute(Config $config, IO $io, Repository $repository, Act
3333
}
3434

3535
/**
36-
* @param $directories string[]
36+
* @param $directories array<string>
3737
*
3838
* @return array<string, mixed>
3939
*/

src/Action/CheckPrettier.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ protected function doExecute(Config $config, IO $io, Repository $repository, Act
4545

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

48-
if ($result['success']) {
48+
/** @var bool $isResultSuccess */
49+
$isResultSuccess = $result['success'];
50+
51+
if ($isResultSuccess) {
4952
$io->write($result['output']);
5053
} else {
5154
$io->writeError(sprintf('<error>%s</error>', $result['error']));

0 commit comments

Comments
 (0)