Skip to content
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

Wrong type when using \PDO::FETCH_OBJ (on iteration) #748

Closed
AllenJB opened this issue Mar 2, 2025 · 0 comments · Fixed by #751
Closed

Wrong type when using \PDO::FETCH_OBJ (on iteration) #748

AllenJB opened this issue Mar 2, 2025 · 0 comments · Fixed by #751
Labels
bug Something isn't working

Comments

@AllenJB
Copy link

AllenJB commented Mar 2, 2025

With reference to test

$stmt = $pdo->query('SELECT email, adaid FROM ada', PDO::FETCH_OBJ);

The returned type should be \stdClass, not array<int, \stdClass>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants