src/Migration/Adapter/Database/MySqlSchemaAdapter.php
protected function createQueryStatement(string $sql): PDOStatement
    {
        $statement = $this->pdo->query($sql);

        if (!$statement instanceof PDOStatement) {
            throw new RuntimeException('Invalid statement');
        }

        return $statement;
    }
protected function createQueryStatement(string $sql): PDOStatement
    {
        $statement = $this->pdo->query($sql);

        if (!$statement instanceof PDOStatement) {
            throw new RuntimeException('Invalid statement');
        }

        return $statement;
    }
protected function createQueryStatement ( string $ sql ) : PDOStatement { $ statement = $ this -> pdo -> query ( $ sql ) ; if ( ! $ statement instanceof PDOStatement ) { throw new RuntimeException ( 'Invalid statement' ) ; } return $ statement ; }
Create a new PDO statement.

@param string $sql The sql

@return PDOStatement The statement
Create a new PDO statement .