From 7a0e841a0d6684289939698d4fbe3233c3ac23f9 Mon Sep 17 00:00:00 2001 From: Nuno Maduro Date: Sat, 27 Nov 2021 19:41:50 +0000 Subject: [PATCH] chore: fixes tests --- composer.json | 4 ++-- src/HigherOrderExpectation.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 8b4bdf03..4d50f7b0 100644 --- a/composer.json +++ b/composer.json @@ -60,8 +60,8 @@ "bin/pest" ], "scripts": { - "lint": "php-cs-fixer fix -v", - "test:lint": "php-cs-fixer fix -v --dry-run", + "lint": "PHP_CS_FIXER_IGNORE_ENV=true php-cs-fixer fix -v", + "test:lint": "PHP_CS_FIXER_IGNORE_ENV=true php-cs-fixer fix -v --dry-run", "test:types": "phpstan analyse --ansi --memory-limit=-1 --debug", "test:unit": "php bin/pest --colors=always --exclude-group=integration", "test:parallel": "exit 1", diff --git a/src/HigherOrderExpectation.php b/src/HigherOrderExpectation.php index ed54e09b..a760e845 100644 --- a/src/HigherOrderExpectation.php +++ b/src/HigherOrderExpectation.php @@ -131,6 +131,7 @@ final class HigherOrderExpectation */ private function getValue(): mixed { + // @phpstan-ignore-next-line return $this->shouldReset ? $this->original->value : $this->expectation->value; }