Skip to content

Commit

Permalink
Fixes Psalm's "InvalidArgument" error.
Browse files Browse the repository at this point in the history
I just removed the return type from the "exceptionErrorHandler". There is in fact a hacky solution, that I didn't like:
vimeo/psalm#3571

Signed-off-by: Faraz Samapoor <fsa@adlas.at>
  • Loading branch information
fsamapoor authored and Faraz Samapoor committed Jul 12, 2023
1 parent b887065 commit 270035f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/lib/Command/ScanAppData.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function initTools(): void {
*
* @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;
Expand Down

0 comments on commit 270035f

Please sign in to comment.