Skip to content

Error in Generators #142

Open
Open
@titanrat

Description

@titanrat

I have a similar problem with #66

When i try to mock laravel database (v5.2.45) file /vendor/illuminate/database/Query/Builder.php

/** * Get a generator for the given query. * * @return \Generator */ public function cursor() { if (is_null($this->columns)) { $this->columns = ['*']; } return $this->connection->cursor( $this->toSql(), $this->getBindings(), ! $this->useWritePdo ); }
Something goes wrong with this function, and tests fails with

PHP Fatal error: Generators cannot return values using "return" in /www/backend/vendor/illuminate/database/Query/Builder.php on line 1750

How can I fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions