mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-02 13:03:50 +00:00
fix test for types option validity
This commit is contained in:
@@ -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;
|
||||
})
|
||||
;
|
||||
|
||||
|
Reference in New Issue
Block a user