Fix phpstan messages.

This commit is contained in:
James Cole
2022-12-30 20:25:04 +01:00
parent ee0116f112
commit 445804a7f1
47 changed files with 233 additions and 287 deletions

View File

@@ -155,7 +155,7 @@ class ReportFormRequest extends FormRequest
if (preg_match($pattern, $string)) {
try {
$date = new Carbon($parts[1]);
} catch (Exception $e) {
} catch (Exception $e) { // intentional generic exception
$error = sprintf('"%s" is not a valid date range: %s', $range, $e->getMessage());
Log::error($error);
throw new FireflyException($error, 0, $e);
@@ -189,7 +189,7 @@ class ReportFormRequest extends FormRequest
if (preg_match($pattern, $string)) {
try {
$date = new Carbon($parts[0]);
} catch (Exception $e) {
} catch (Exception $e) { // intentional generic exception
$error = sprintf('"%s" is not a valid date range: %s', $range, $e->getMessage());
Log::error($error);
throw new FireflyException($error, 0, $e);