From 728bc34175f32bb7fddd540906502d386ca120ea Mon Sep 17 00:00:00 2001 From: "S.a Mahmoudzadeh" <36761585+saMahmoudzadeh@users.noreply.github.com> Date: Mon, 6 May 2024 20:43:43 +0330 Subject: [PATCH] using ?? operator (Null Coalescing Operator) (#51305) --- Concerns/RunsInParallel.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Concerns/RunsInParallel.php b/Concerns/RunsInParallel.php index 4a6c475..6675043 100644 --- a/Concerns/RunsInParallel.php +++ b/Concerns/RunsInParallel.php @@ -121,9 +121,7 @@ public function execute(): int }); } - return $potentialExitCode === null - ? $this->getExitCode() - : $potentialExitCode; + return $potentialExitCode ?? $this->getExitCode(); } /**