Skip to content

Commit

Permalink
Use 'static' instead of 'self' method call to process command result (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
czukowski authored Dec 16, 2022
1 parent 3a46820 commit 79261cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Finder/ProcOpenBasedFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function find(): ?int

return $failed
? null
: self::countCpuCores($stdout);
: static::countCpuCores($stdout);
}

/**
Expand Down
9 changes: 9 additions & 0 deletions tests/Finder/WmicLogicalFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,14 @@ public static function processResultProvider(): iterable
,
2,
];

yield 'another example from the GitHub Actions machine' => [
<<<'EOF'
NumberOfLogicalProcessors
8
EOF
,
8,
];
}
}

0 comments on commit 79261cc

Please sign in to comment.