From fbbabb71df5988d48c592985375df333e0384723 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Tue, 30 Apr 2024 01:44:11 +0200 Subject: [PATCH] Fix PHPStan (PHP8.1) --- .github/workflows/build.yml | 4 ++-- src/Checker/DefaultEligibilityChecker.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2e2aee3..ebd6b41 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,7 +28,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ 8.0, 8.3 ] + php: [ 8.1, 8.3 ] symfony: [ ^5.4, ^6.4 ] steps: @@ -108,7 +108,7 @@ jobs: strategy: fail-fast: false matrix: - php: [8.0, 8.3] + php: [8.1, 8.3] symfony: [^5.4, ^6.4] sylius: [~1.12.0, ~1.13.0] node: [18.x] diff --git a/src/Checker/DefaultEligibilityChecker.php b/src/Checker/DefaultEligibilityChecker.php index 45edaed..c0cdfc7 100644 --- a/src/Checker/DefaultEligibilityChecker.php +++ b/src/Checker/DefaultEligibilityChecker.php @@ -21,6 +21,7 @@ public function check( AddressInterface $taxationAddress, ChannelInterface $channel, ): bool { + /** @var VatRateEligibilityCheckerInterface $checker */ foreach ($this->checkers as $checker) { if (false === $checker->check($taxationAddress, $channel)) { return false;