src/Migration/Adapter/Database/MySqlSchemaAdapter.php
protected function queryFetchAll(string $sql): array
    {
        $statement = $this->createQueryStatement($sql);
        $rows = $statement->fetchAll(PDO::FETCH_ASSOC);

        if (!$rows) {
            return [];
        }

        return $rows;
    }
protected function queryFetchAll(string $sql): array
    {
        $statement = $this->createQueryStatement($sql);
        $rows = $statement->fetchAll(PDO::FETCH_ASSOC);

        if (!$rows) {
            return [];
        }

        return $rows;
    }
protected function queryFetchAll ( string $ sql ) : array { $ statement = $ this -> createQueryStatement ( $ sql ) ; $ rows = $ statement -> fetchAll ( PDO :: FETCH_ASSOC ) ; if ( ! $ rows ) { return [ ] ; } return $ rows ; }
Fetch all rows as array.

@param string $sql The sql

@return array The rows
Fetch all rows as array .