aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files/Events/Node
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Files/Events/Node')
-rw-r--r--lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php2
-rw-r--r--lib/public/Files/Events/Node/BeforeNodeRenamedEvent.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php b/lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php
index c0226a9b527..8cbd1d8a3a0 100644
--- a/lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php
+++ b/lib/public/Files/Events/Node/BeforeNodeDeletedEvent.php
@@ -35,7 +35,7 @@ class BeforeNodeDeletedEvent extends AbstractNodeEvent {
* @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');
}
}
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');
}
}