Skip to content

Commit

Permalink
Merge pull request #453 from creative-commoners/pulls/6/php84
Browse files Browse the repository at this point in the history
API Explicity mark nullable parameters for PHP 8.4
  • Loading branch information
GuySartorelli authored Dec 2, 2024
2 parents 9725e76 + 88cd1f7 commit 0c7d8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Services/QueuedJobService.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 0c7d8b7

Please sign in to comment.