Skip to content

Commit 0349d21

Browse files
committed
fix phpstan issues
1 parent dcf7b40 commit 0349d21

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Console/GenerateFileHashesAllVersionsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private function scanVersionInstances(array $allInstances, string $version, stri
116116
$instanceResult = new InstanceResult($instance['name'], $version, $fileHash, $fileContent);
117117
$instanceResults->add($instanceResult);
118118

119-
if ($fileHash === null) {
119+
if ($instanceResult->fileHash === null) {
120120
$output->writeln('<error>Could not get hash for instance ' . $instance['name'] . '</error>', OutputInterface::VERBOSITY_VERY_VERBOSE);
121121

122122
if ($scannedInstances > 4 && count($foundMatchesForHash) === 0) {

src/Console/InstanceResult.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Gared\EtherScan\Console;
45

src/Console/InstanceResults.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Gared\EtherScan\Console;
45

0 commit comments

Comments
 (0)