Actually, it does not return `mixed`, it returns `bool`.
This is an error in the PHP documentation (I will file it there):

    $pdo = new PDO('sqlite::memory:');
    $st = $pdo->query('SELECT * FROM sqlite_master');
    var_export($st->setFetchMode(PDO::FETCH_NUM)); // true, not 1