From 88cd1f782bf282eb03fbd14cebf79b0496a5cec6 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 28 Nov 2024 14:05:46 +1300 Subject: [PATCH] API Explicity mark nullable parameters for PHP 8.4 --- src/Services/QueuedJobService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Services/QueuedJobService.php b/src/Services/QueuedJobService.php index 17dc3ac..a3eafaa 100644 --- a/src/Services/QueuedJobService.php +++ b/src/Services/QueuedJobService.php @@ -1096,7 +1096,7 @@ protected function handleBrokenJobException(QueuedJobDescriptor $jobDescriptor, * @param Member|null $originalUser * @return null|Member */ - protected function setRunAsUser(Member $runAsUser, Member $originalUser = null) + protected function setRunAsUser(Member $runAsUser, ?Member $originalUser = null) { // Sanity check. Can't set the user if they don't exist. if ($runAsUser === null || !$runAsUser->exists()) { @@ -1129,7 +1129,7 @@ protected function setRunAsUser(Member $runAsUser, Member $originalUser = null) * @param Member|null $runAsUser * @param Member|null $originalUser */ - protected function unsetRunAsUser(Member $runAsUser = null, Member $originalUser = null) + protected function unsetRunAsUser(?Member $runAsUser = null, ?Member $originalUser = null) { // No runAsUser was set, so we don't need to do anything. if ($runAsUser === null) {