source/Core/Database/Adapter/Doctrine/Database.php
private function assureParameterIsAnArray($parameter)
    {
        /** If $parameter evaluates to true and it is not an array throw an InvalidArgumentException */
        if ($parameter && !is_array($parameter)) {
            throw new \InvalidArgumentException();
        }

        /** If $parameter evaluates to false and it is not an array convert it into an array */
        if (!is_array($parameter)) {
            $parameter = [];
        }

        return $parameter;
    }
private function assureParameterIsAnArray($parameter)
    {
        /** If $parameter evaluates to true and it is not an array throw an InvalidArgumentException */
        if ($parameter && !is_array($parameter)) {
            throw new \InvalidArgumentException();
        }

        /** If $parameter evaluates to false and it is not an array convert it into an array */
        if (!is_array($parameter)) {
            $parameter = [];
        }

        return $parameter;
    }
private function assureParameterIsAnArray ( $ parameter ) { /** If $parameter evaluates to true and it is not an array throw an InvalidArgumentException */ if ( $ parameter && ! is_array ( $ parameter ) ) { throw new \ InvalidArgumentException ( ) ; } /** If $parameter evaluates to false and it is not an array convert it into an array */ if ( ! is_array ( $ parameter ) ) { $ parameter = [ ] ; } return $ parameter ; }
Sanitize the given parameter to be an array.
In v5.3.0 in many places in the code false is passed instead of an empty array.

This methods work like this:
Anything that evaluates to true and is not an array will cause an exception to be thrown.
Anything that evaluates to false will be converted into an empty array.
An non empty array will be returned as such.

@param bool|array $parameter The parameter we want to be an array.

@throws \InvalidArgumentException

@deprecated since v6.0 (2016-04-13); Backward compatibility for v5.3.0.

@return array The original array or an empty array, if false was passed.
Sanitize the given parameter to be an array . In v5 . 3 . 0 in many places in the code false is passed instead of an empty array .