diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 84219d82..871c602f 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -3,8 +3,9 @@ name: PHPStan on: workflow_dispatch: push: - branches-ignore: - - 'dependabot/npm_and_yarn/*' + branches: [main] + pull_request: + branches: [main] jobs: phpstan: diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8b18acdc..266bd0e1 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,36 +1,35 @@ - - - - tests - - - - - ./src - - - - - - - - - - + + + + tests + + + + + + + + + + + + + + + ./src + + diff --git a/src/Fakes/PowerMonitorFake.php b/src/Fakes/PowerMonitorFake.php index 2af99167..caaf2823 100644 --- a/src/Fakes/PowerMonitorFake.php +++ b/src/Fakes/PowerMonitorFake.php @@ -64,7 +64,7 @@ public function assertGetSystemIdleState(int|Closure $key): void $hit = empty( array_filter( $this->getSystemIdleStateCalls, - fn (string $keyIteration) => $key($keyIteration) === true + fn (int $keyIteration) => $key($keyIteration) === true ) ) === false; diff --git a/tests/ChildProcess/ChildProcessTest.php b/tests/ChildProcess/ChildProcessTest.php index 7bd13b79..c78db8ce 100644 --- a/tests/ChildProcess/ChildProcessTest.php +++ b/tests/ChildProcess/ChildProcessTest.php @@ -2,7 +2,6 @@ use Illuminate\Http\Client\Request; use Illuminate\Support\Facades\Http; -use Mockery; use Native\Laravel\ChildProcess as ChildProcessImplement; use Native\Laravel\Client\Client; use Native\Laravel\Facades\ChildProcess;