check $properties['value'] is not empty

This commit is contained in:
Thomas Picquet 2022-02-02 08:47:26 -08:00
parent f363eeef66
commit 405a5247e1

View File

@ -26,7 +26,7 @@ final class Areas
$properties['value'] = array_values($properties);
}
if ([] === $properties) {
if ([] === $properties['value']) {
throw new \InvalidArgumentException('An array of areas was expected');
}