mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-04-06 07:13:31 +03:00
check $properties['value']
is not empty
This commit is contained in:
parent
f363eeef66
commit
405a5247e1
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue