From d0f8166db43f034c14c9668ec9948781aa1e0918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C5=A0pa=C4=8Dek?= Date: Tue, 20 Feb 2024 22:14:20 +0100 Subject: [PATCH] It's already a list, no need to call array_values() This is a new bleeding edge rule added in PHPStan 1.10.59 which resulted in "Parameter #1 $array (non-empty-list) of array_values is already a list, call has no effect." --- src/DisallowedCallFactory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DisallowedCallFactory.php b/src/DisallowedCallFactory.php index a352a7c..907f564 100644 --- a/src/DisallowedCallFactory.php +++ b/src/DisallowedCallFactory.php @@ -50,7 +50,7 @@ public function createFromConfig(array $config): array foreach ((array)($disallowed['exclude'] ?? []) as $exclude) { $excludes[] = $this->normalizer->normalizeCall($exclude); } - $calls = array_values((array)$calls); + $calls = (array)$calls; try { foreach ($calls as $call) { $disallowedCall = new DisallowedCall(