Codeception / Codeception/AspectMock
Error in Generators
- Dominant language
- PHP
- Stars
- 784
- Forks
- 132
- PR merge metrics
- No merged PRs in 30d
Description
I have a similar problem with https://github.com/Codeception/AspectMock/pull/66
When i try to mock laravel database (v5.2.45) file [/vendor/illuminate/database/Query/Builder.php](https://github.com/illuminate/database/blob/v5.2.45/Query/Builder.php#L1737)
`
/**
* 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?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.