mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
fix test for types option validity
This commit is contained in:
parent
1781bd31a0
commit
5bc1a1a7b2
@ -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;
|
||||
})
|
||||
;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user