diff options
Diffstat (limited to 'lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php')
-rw-r--r-- | lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php b/lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php index 4c2c566c8c6..7331f750267 100644 --- a/lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php +++ b/lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php @@ -35,7 +35,7 @@ class BeforeNodeRenamedEvent extends AbstractNodesEvent { * @since 28.0.0 * @deprecated 29.0.0 - use OCP\Exceptions\AbortedEventException instead */ - public function abortOperation(\Throwable $ex = null) { + public function abortOperation(?\Throwable $ex = null) { throw new AbortedEventException($ex?->getMessage() ?? 'Operation aborted'); } } |