From e8eb62e5fd1f1a04ca44dd3ec43782b286c38465 Mon Sep 17 00:00:00 2001 From: "tien.xuan.vo" Date: Mon, 30 Sep 2024 22:33:36 +0700 Subject: [PATCH] refactor: PHPStan max level > Fix wrong parameter type --- .../Standalone/ProviderVerifier/Model/Selector/Selector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PhpPact/Standalone/ProviderVerifier/Model/Selector/Selector.php b/src/PhpPact/Standalone/ProviderVerifier/Model/Selector/Selector.php index 31910832..476337f3 100644 --- a/src/PhpPact/Standalone/ProviderVerifier/Model/Selector/Selector.php +++ b/src/PhpPact/Standalone/ProviderVerifier/Model/Selector/Selector.php @@ -32,6 +32,6 @@ public function __construct( */ public function jsonSerialize(): array { - return array_filter(get_object_vars($this), fn (null|string|bool $value) => null !== $value); + return array_filter(get_object_vars($this), fn (mixed $value) => is_bool($value) || is_string($value)); } }