diff --git a/composer.json b/composer.json index 906f4752..76342217 100644 --- a/composer.json +++ b/composer.json @@ -59,8 +59,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", "test:unit": "php bin/pest --colors=always --exclude-group=integration", "test:parallel": "php bin/pest -p --colors=always --exclude-group=integration", diff --git a/src/Pest.php b/src/Pest.php index 2ce5fc56..541dac74 100644 --- a/src/Pest.php +++ b/src/Pest.php @@ -6,7 +6,7 @@ namespace Pest; function version(): string { - return '1.22.0'; + return '1.22.1'; } function testDirectory(string $file = ''): string diff --git a/src/Support/ExceptionTrace.php b/src/Support/ExceptionTrace.php index ec17afc8..ac6ec980 100644 --- a/src/Support/ExceptionTrace.php +++ b/src/Support/ExceptionTrace.php @@ -44,6 +44,7 @@ final class ExceptionTrace */ public static function removePestReferences(Throwable $t): void { + /* @phpstan-ignore-next-line */ if (!property_exists($t, 'serializableTrace')) { return; }