From d0c76b89c5e93ae9cb2e2404f73c16385f81bfeb Mon Sep 17 00:00:00 2001 From: Arslan <49312804+marschattha@users.noreply.github.com> Date: Mon, 2 Dec 2024 18:53:05 +0500 Subject: [PATCH] Remove old version tests for green CI tests (#1250) Old version tests are causing issues on CI because of deprecation warning coming from Php on macOs Example: https://github.com/qltysh/qlty/actions/runs/12120325041 --- .../fixtures/__snapshots__/basic_v1.11.1.shot | 59 ---------- .../__snapshots__/batched_v1.11.1.shot | 110 ------------------ 2 files changed, 169 deletions(-) delete mode 100644 plugins/linters/phpstan/fixtures/__snapshots__/basic_v1.11.1.shot delete mode 100644 plugins/linters/phpstan/fixtures/__snapshots__/batched_v1.11.1.shot diff --git a/plugins/linters/phpstan/fixtures/__snapshots__/basic_v1.11.1.shot b/plugins/linters/phpstan/fixtures/__snapshots__/basic_v1.11.1.shot deleted file mode 100644 index ec47bf1d1..000000000 --- a/plugins/linters/phpstan/fixtures/__snapshots__/basic_v1.11.1.shot +++ /dev/null @@ -1,59 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`linter=phpstan fixture=basic version=1.11.1 1`] = ` -{ - "issues": [ - { - "category": "CATEGORY_LINT", - "documentationUrl": "https://phpstan.org/user-guide/discovering-symbols", - "level": "LEVEL_MEDIUM", - "location": { - "path": "basic.in.php", - "range": { - "endLine": 7, - "startLine": 7, - }, - }, - "message": "Call to method format() on an unknown class DateTimeImutable.", - "mode": "MODE_BLOCK", - "ruleKey": "class.notFound", - "snippet": " echo 'Hello, ' . $date->format('j. n. Y');", - "snippetWithContext": "format('j. n. Y'); - } -}", - "tool": "phpstan", - }, - { - "category": "CATEGORY_LINT", - "level": "LEVEL_MEDIUM", - "location": { - "path": "basic.in.php", - "range": { - "endLine": 5, - "startLine": 5, - }, - }, - "message": "Parameter $date of method HelloWorld::sayHello() has invalid type DateTimeImutable.", - "mode": "MODE_BLOCK", - "ruleKey": "class.notFound", - "snippet": " public function sayHello(DateTimeImutable $date): void", - "snippetWithContext": "format('j. n. Y'); - } -}", - "tool": "phpstan", - }, - ], -} -`; diff --git a/plugins/linters/phpstan/fixtures/__snapshots__/batched_v1.11.1.shot b/plugins/linters/phpstan/fixtures/__snapshots__/batched_v1.11.1.shot deleted file mode 100644 index 3d719ce12..000000000 --- a/plugins/linters/phpstan/fixtures/__snapshots__/batched_v1.11.1.shot +++ /dev/null @@ -1,110 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`linter=phpstan fixture=batched version=1.11.1 1`] = ` -{ - "issues": [ - { - "category": "CATEGORY_LINT", - "documentationUrl": "https://phpstan.org/user-guide/discovering-symbols", - "level": "LEVEL_MEDIUM", - "location": { - "path": "basic.php", - "range": { - "endLine": 7, - "startLine": 7, - }, - }, - "message": "Call to method format() on an unknown class DateTimeImutable.", - "mode": "MODE_BLOCK", - "ruleKey": "class.notFound", - "snippet": " echo 'Hello, ' . $date->format('j. n. Y');", - "snippetWithContext": "format('j. n. Y'); - } -}", - "tool": "phpstan", - }, - { - "category": "CATEGORY_LINT", - "documentationUrl": "https://phpstan.org/user-guide/discovering-symbols", - "level": "LEVEL_MEDIUM", - "location": { - "path": "basic_batched.php", - "range": { - "endLine": 7, - "startLine": 7, - }, - }, - "message": "Call to method format() on an unknown class DateTimeImutable.", - "mode": "MODE_BLOCK", - "ruleKey": "class.notFound", - "snippet": " echo 'Hello, ' . $date->format('j. n. Y');", - "snippetWithContext": "format('j. n. Y'); - } -}", - "tool": "phpstan", - }, - { - "category": "CATEGORY_LINT", - "level": "LEVEL_MEDIUM", - "location": { - "path": "basic.php", - "range": { - "endLine": 5, - "startLine": 5, - }, - }, - "message": "Parameter $date of method HelloWorld::sayHello() has invalid type DateTimeImutable.", - "mode": "MODE_BLOCK", - "ruleKey": "class.notFound", - "snippet": " public function sayHello(DateTimeImutable $date): void", - "snippetWithContext": "format('j. n. Y'); - } -}", - "tool": "phpstan", - }, - { - "category": "CATEGORY_LINT", - "level": "LEVEL_MEDIUM", - "location": { - "path": "basic_batched.php", - "range": { - "endLine": 5, - "startLine": 5, - }, - }, - "message": "Parameter $date of method HelloWorld::sayHello() has invalid type DateTimeImutable.", - "mode": "MODE_BLOCK", - "ruleKey": "class.notFound", - "snippet": " public function sayHello(DateTimeImutable $date): void", - "snippetWithContext": "format('j. n. Y'); - } -}", - "tool": "phpstan", - }, - ], -} -`;