Skip to content

Commit 932fce7

Browse files
committed
Permit nullable user IDs
1 parent 64f8505 commit 932fce7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

classes/log/event/EventLogEntry.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ class EventLogEntry extends \PKP\core\DataObject
3333
/**
3434
* Get user ID of user that initiated the event.
3535
*/
36-
public function getUserId(): int
36+
public function getUserId(): ?int
3737
{
3838
return $this->getData('userId');
3939
}
4040

4141
/**
4242
* Set user ID of user that initiated the event.
4343
*/
44-
public function setUserId(int $userId): void
44+
public function setUserId(?int $userId): void
4545
{
4646
$this->setData('userId', $userId);
4747
}

0 commit comments

Comments
 (0)