From aca917bfb729e22827102921330448ca8dd831d5 Mon Sep 17 00:00:00 2001 From: Chris Kankiewicz Date: Mon, 7 Sep 2020 09:37:08 -0700 Subject: [PATCH] Fixed some static analysis errors --- app/src/Exceptions/InvalidConfiguration.php | 2 +- app/src/HiddenFiles.php | 2 +- psalm-baseline.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/Exceptions/InvalidConfiguration.php b/app/src/Exceptions/InvalidConfiguration.php index 01673bc..5770629 100644 --- a/app/src/Exceptions/InvalidConfiguration.php +++ b/app/src/Exceptions/InvalidConfiguration.php @@ -4,7 +4,7 @@ namespace App\Exceptions; use RuntimeException; -class InvalidConfiguration extends RuntimeException +final class InvalidConfiguration extends RuntimeException { /** Create an exception from a configuration option and value. */ public static function fromConfig(string $option, $value): self diff --git a/app/src/HiddenFiles.php b/app/src/HiddenFiles.php index 6a995a1..38bfb56 100644 --- a/app/src/HiddenFiles.php +++ b/app/src/HiddenFiles.php @@ -27,6 +27,6 @@ class HiddenFiles extends Collection $items = array_merge($items, $config->get('app_files')); } - return new static(array_unique($items)); + return new self(array_unique($items)); } } diff --git a/psalm-baseline.xml b/psalm-baseline.xml index 793a43d..4943185 100644 --- a/psalm-baseline.xml +++ b/psalm-baseline.xml @@ -1,5 +1,5 @@ - + current