From c773d1cd57bf832cc18f4beffe7bf89d42f462bb Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Fri, 18 Jun 2021 22:09:56 +0100 Subject: [PATCH] chore: type checks scripts folder --- phpstan.neon | 1 + scripts/compile.php | 1 + 2 files changed, 2 insertions(+) diff --git a/phpstan.neon b/phpstan.neon index a32cf76a..35d5f07e 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -7,6 +7,7 @@ parameters: level: max paths: - src + - scripts checkMissingIterableValueType: true checkGenericClassInNonGenericObjectType: false diff --git a/scripts/compile.php b/scripts/compile.php index 56c3974c..7607bc90 100644 --- a/scripts/compile.php +++ b/scripts/compile.php @@ -15,6 +15,7 @@ $globalsFilePath = implode(DIRECTORY_SEPARATOR, [ $compiledFilePath = implode(DIRECTORY_SEPARATOR, [dirname(__DIR__), 'compiled', 'globals.php']); +/** @phpstan-ignore-next-line */ @unlink($compiledFilePath); $replace = function ($contents, $string, $by) {