From 49dd660f68379513e3a298e6a4328316ed78466e Mon Sep 17 00:00:00 2001 From: bernard-ng Date: Sat, 18 May 2024 00:13:14 +0200 Subject: [PATCH] style: phpstan fix --- .github/workflows/test.yaml | 2 +- composer.lock | 10 +++++----- phpstan.neon | 6 ++++-- src/Client.php | 1 - 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f6c7cd1..47aac38 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -18,4 +18,4 @@ jobs: - uses: actions/checkout@master - name: test - run: make test + run: make lint diff --git a/composer.lock b/composer.lock index 7885946..ae8495a 100644 --- a/composer.lock +++ b/composer.lock @@ -1384,16 +1384,16 @@ }, { "name": "phpstan/phpstan", - "version": "1.10.67", + "version": "1.11.1", "source": { "type": "git", "url": "https://github.com/phpstan/phpstan.git", - "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493" + "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/16ddbe776f10da6a95ebd25de7c1dbed397dc493", - "reference": "16ddbe776f10da6a95ebd25de7c1dbed397dc493", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/e524358f930e41a2b4cca1320e3b04fc26b39e0b", + "reference": "e524358f930e41a2b4cca1320e3b04fc26b39e0b", "shasum": "" }, "require": { @@ -1438,7 +1438,7 @@ "type": "github" } ], - "time": "2024-04-16T07:22:02+00:00" + "time": "2024-05-15T08:00:59+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/phpstan.neon b/phpstan.neon index 314a8b2..36fd060 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -2,5 +2,7 @@ parameters: level: 9 paths: - src - checkMissingIterableValueType: false - checkGenericClassInNonGenericObjectType: false + + ignoreErrors: + - identifier: missingType.generics + - identifier: missingType.iterableValue diff --git a/src/Client.php b/src/Client.php index 2f29647..42dee85 100644 --- a/src/Client.php +++ b/src/Client.php @@ -5,7 +5,6 @@ namespace Devscast\Flexpay; use Devscast\Flexpay\Data\Method; -use Devscast\Flexpay\Data\Transaction; use Devscast\Flexpay\Exception\NetworkException; use Devscast\Flexpay\Response\CheckResponse; use Devscast\Flexpay\Response\FlexpayResponse;