diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-10-26 16:42:19 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2021-12-16 09:43:29 +0100 |
commit | 37f8f7a5a18e57507330036b747d4b12e58efae4 (patch) | |
tree | 4a057e03cae53d21092d06e373fa91fbad2b258f /apps/encryption/lib/Command | |
parent | 6b770eb5799f58c41db2b3249e6e71cf69049fac (diff) | |
download | nextcloud-server-37f8f7a5a18e57507330036b747d4b12e58efae4.tar.gz nextcloud-server-37f8f7a5a18e57507330036b747d4b12e58efae4.zip |
Fix tests on PHP 8.1 for encryption, files_sharing, files_version,
files_trashbin and theming apps
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/encryption/lib/Command')
-rw-r--r-- | apps/encryption/lib/Command/FixEncryptedVersion.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/encryption/lib/Command/FixEncryptedVersion.php b/apps/encryption/lib/Command/FixEncryptedVersion.php index d51f64c8ef9..073c1f1438a 100644 --- a/apps/encryption/lib/Command/FixEncryptedVersion.php +++ b/apps/encryption/lib/Command/FixEncryptedVersion.php @@ -116,10 +116,7 @@ class FixEncryptedVersion extends Command { $user = (string)$input->getArgument('user'); $pathToWalk = "/$user/files"; - /** - * trim() returns an empty string when the argument is an unset/null - */ - $pathOption = \trim($input->getOption('path'), '/'); + $pathOption = \trim(($input->getOption('path') ?? ''), '/'); if ($pathOption !== "") { $pathToWalk = "$pathToWalk/$pathOption"; } |