aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-07-05 10:26:35 +0330
committerFaraz Samapoor <fsa@adlas.at>2023-07-12 18:29:32 +0330
commit270035ff44d7c8054d065ad0ac8835854ac13522 (patch)
tree3e26967f9a1b6a1bb949e0393705cbd54fa5e9c0 /apps/files
parentb8870658fb0c1e7661c99affa2999941be6a0139 (diff)
downloadnextcloud-server-270035ff44d7c8054d065ad0ac8835854ac13522.tar.gz
nextcloud-server-270035ff44d7c8054d065ad0ac8835854ac13522.zip
Fixes Psalm's "InvalidArgument" error.
I just removed the return type from the "exceptionErrorHandler". There is in fact a hacky solution, that I didn't like: https://github.com/vimeo/psalm/issues/3571 Signed-off-by: Faraz Samapoor <fsa@adlas.at>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Command/ScanAppData.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Command/ScanAppData.php b/apps/files/lib/Command/ScanAppData.php
index b646251539e..0ba26490a78 100644
--- a/apps/files/lib/Command/ScanAppData.php
+++ b/apps/files/lib/Command/ScanAppData.php
@@ -182,7 +182,7 @@ class ScanAppData extends Base {
*
* @throws \ErrorException
*/
- public function exceptionErrorHandler($severity, $message, $file, $line): void {
+ public function exceptionErrorHandler($severity, $message, $file, $line) {
if (!(error_reporting() & $severity)) {
// This error code is not included in error_reporting
return;