Skip to content

Commit 89ce187

Browse files
authored
[10.x] Fixes missing getExitCode on recent version of ParaTest (#46035)
* Fixes missing `getExitCode` on latest paratest runner * Fixes var name
1 parent afc5433 commit 89ce187

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@
105105
"pda/pheanstalk": "^4.0",
106106
"phpstan/phpdoc-parser": "^1.15",
107107
"phpstan/phpstan": "^1.4.7",
108-
"phpunit/phpunit": "^9.6.0 || ^10.0.1",
108+
"phpunit/phpunit": "^9.6.0 || ^10.0.7",
109109
"predis/predis": "^2.0.2",
110110
"symfony/cache": "^6.2",
111111
"symfony/http-client": "^6.2.4"

src/Illuminate/Testing/Concerns/RunsInParallel.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,16 @@ public function execute(): int
116116
});
117117

118118
try {
119-
$this->runner->run();
119+
$potentialExitCode = $this->runner->run();
120120
} finally {
121121
$this->forEachProcess(function () {
122122
ParallelTesting::callTearDownProcessCallbacks();
123123
});
124124
}
125125

126-
return $this->getExitCode();
126+
return $potentialExitCode === null
127+
? $this->getExitCode()
128+
: $potentialExitCode;
127129
}
128130

129131
/**

0 commit comments

Comments
 (0)