aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Collaboration/Resources/ResourceProvider.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files/lib/Collaboration/Resources/ResourceProvider.php')
-rw-r--r--apps/files/lib/Collaboration/Resources/ResourceProvider.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Collaboration/Resources/ResourceProvider.php b/apps/files/lib/Collaboration/Resources/ResourceProvider.php
index a15e1558057..a1a944bc56a 100644
--- a/apps/files/lib/Collaboration/Resources/ResourceProvider.php
+++ b/apps/files/lib/Collaboration/Resources/ResourceProvider.php
@@ -107,7 +107,7 @@ class ResourceProvider implements IProvider {
* @return bool
* @since 16.0.0
*/
- public function canAccessResource(IResource $resource, IUser $user = null): bool {
+ public function canAccessResource(IResource $resource, ?IUser $user = null): bool {
if (!$user instanceof IUser) {
return false;
}