@@ -36,5 +36,5 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * @return IPropertyValueBinding[] gets the value annotations for the properties of the type |
| 38 | 38 | */ |
| 39 | - abstract public function getPropertyValueBindings(): array; |
|
| 39 | + abstract public function getPropertyValueBindings(): array; |
|
| 40 | 40 | } |
@@ -51,7 +51,9 @@ |
||
| 51 | 51 | if(!function_exists('iterable_to_array')) { |
| 52 | 52 | function iterable_to_array(iterable $it): array |
| 53 | 53 | { |
| 54 | - if (is_array($it)) return $it; |
|
| 54 | + if (is_array($it)) { |
|
| 55 | + return $it; |
|
| 56 | + } |
|
| 55 | 57 | $ret = []; |
| 56 | 58 | array_push($ret, ...$it); |
| 57 | 59 | return $ret; |