A::wrap()
Wraps the given value in an array if it's not an array yet.
A::wrap(mixed|array|null $array = null): array
Parameters
| Name | Type | Default |
|---|---|---|
| $array | mixedorarray<mixed>ornull |
null
|
Return type
array<mixed>