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) {