mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 23:59:26 +03:00
check $properties['value']
is not empty
This commit is contained in:
parent
f363eeef66
commit
405a5247e1
@ -26,7 +26,7 @@ final class Areas
|
|||||||
$properties['value'] = array_values($properties);
|
$properties['value'] = array_values($properties);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([] === $properties) {
|
if ([] === $properties['value']) {
|
||||||
throw new \InvalidArgumentException('An array of areas was expected');
|
throw new \InvalidArgumentException('An array of areas was expected');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user