You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * 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?
The text was updated successfully, but these errors were encountered:
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
How can I fix this?
The text was updated successfully, but these errors were encountered: