From 270035ff44d7c8054d065ad0ac8835854ac13522 Mon Sep 17 00:00:00 2001 From: Faraz Samapoor Date: Wed, 5 Jul 2023 10:26:35 +0330 Subject: [PATCH] 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 --- apps/files/lib/Command/ScanAppData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5