From 076f4176350abad26551a9699d2f434b6a6178ab Mon Sep 17 00:00:00 2001 From: Andrew Welch Date: Sun, 28 Jan 2024 23:16:06 -0500 Subject: [PATCH] refactor: PHPstan ignore --- src/migrations/m231108_024521_change_to_json_column.php | 1 + src/services/Assets.php | 1 + 2 files changed, 2 insertions(+) diff --git a/src/migrations/m231108_024521_change_to_json_column.php b/src/migrations/m231108_024521_change_to_json_column.php index 05d52dd..d2bd613 100644 --- a/src/migrations/m231108_024521_change_to_json_column.php +++ b/src/migrations/m231108_024521_change_to_json_column.php @@ -123,6 +123,7 @@ private function alterColumnUsingPgsql($table, $column, $type, $using): void */ private function getBlockFields(string $fieldType): array { + /** @phpstan-ignore-next-line */ return Craft::$app->getFields()->getFieldsByType($fieldType); } } diff --git a/src/services/Assets.php b/src/services/Assets.php index 1e6eac5..e2f8ec0 100644 --- a/src/services/Assets.php +++ b/src/services/Assets.php @@ -190,6 +190,7 @@ protected function updateContent(string $value, CantoFieldData $cantoFieldData, */ private function getBlockFields(string $fieldType): array { + /** @phpstan-ignore-next-line */ return Craft::$app->getFields()->getFieldsByType($fieldType); } }