Skip to content

Commit

Permalink
API Explicity mark nullable parameters for PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Nov 28, 2024
1 parent 9725e76 commit f151fe8
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 f151fe8

Please sign in to comment.