From 5bc1a1a7b256d22232f5c87832751d805ebc35ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 14 Jan 2020 22:48:38 +0100 Subject: [PATCH] fix test for types option validity --- Form/Type/PickThirdPartyType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form/Type/PickThirdPartyType.php b/Form/Type/PickThirdPartyType.php index adccdaef7..98d3e585b 100644 --- a/Form/Type/PickThirdPartyType.php +++ b/Form/Type/PickThirdPartyType.php @@ -72,7 +72,7 @@ class PickThirdPartyType extends AbstractType return false; } // return false if one element is not contained in allowed types - return count(\array_diff($this->typesManager->getTypes(), $types)); + return count(\array_diff($types, $this->typesManager->getTypes())) === 0; }) ;