Skip to content

Fix PDOStatement getIterator stub type #3974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: 2.1.x
Choose a base branch
from

Conversation

mbolli
Copy link

@mbolli mbolli commented Apr 30, 2025

@mbolli
Copy link
Author

mbolli commented Apr 30, 2025

@staabm thanks for the // lint hint. not sure about the 2 failing tests, but I'll mark this as ready for review.

@mbolli mbolli marked this pull request as ready for review April 30, 2025 11:29
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@mbolli mbolli requested a review from staabm May 1, 2025 11:28
@ondrejmirtes
Copy link
Member

Please rebase this to fix conflicts, thanks.

@mbolli mbolli force-pushed the fix-pdostatement-getiterator branch from e705114 to c0efe59 Compare July 28, 2025 11:54
@mbolli
Copy link
Author

mbolli commented Jul 28, 2025

@ondrejmirtes rebase done. not sure if the failing tests matter.

@VincentLanglet
Copy link
Contributor

Comment on lines +232 to +233

// note: files in ./nsrt will be automatically picked up
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't have to add this.

This is a consequence of the first line

foreach (self::findTestDataFilesFromDirectory(__DIR__ . '/nsrt') as $testFile) {
			yield $testFile;
		}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PHP 8] PDOStatement::getIterator: returned value detected as Traverable and not Iterator
5 participants