Make variable an array (according to flag settings)
Examples
Arr::forceArray(0)-> [0]Arr::forceArray('test')-> ['test']Arr::forceArray(null)-> [null]Arr::forceArray(null,Arr::FORCE_ARRAY_PRESERVE_NULL)-> null$object =newstdClass();Arr::forceArray($object)-> [$object]// With this flag all objects remain intactArr::forceArray($object,Arr::FORCE_ARRAY_PRESERVE_OBJECTS)-> $object$object =newArrayObject();Arr::forceArray($object)-> [$object]// With this flag objects implementing ArrayAccess remain intactArr::forceArray($object,Arr::FORCE_ARRAY_PRESERVE_ARRAY_OBJECTS)-> $object