Skip to content

Infer object type mysqli_fetch_object#2675

Merged
ondrejmirtes merged 3 commits into
phpstan:1.10.xfrom
staabm:mysqli
Apr 29, 2024
Merged

Infer object type mysqli_fetch_object#2675
ondrejmirtes merged 3 commits into
phpstan:1.10.xfrom
staabm:mysqli

Conversation

@staabm

@staabm staabm commented Oct 12, 2023

Copy link
Copy Markdown
Contributor

No description provided.

@staabm staabm marked this pull request as ready for review October 12, 2023 09:23
@phpstan-bot

Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

Comment thread resources/functionMap.php Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

seem we were missing the possible false type in php 7.2/7.3.

in newer versions it was already valid because of php8-stubs

https://www.php.net/mysqli_fetch_object

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don’t sneak in narrower parameter types like this 😊

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ahh good point. just dropped the param type change

Comment thread resources/functionMap.php Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don’t sneak in narrower parameter types like this 😊

@staabm

staabm commented Apr 29, 2024

Copy link
Copy Markdown
Contributor Author

fixed conflicts

@ondrejmirtes ondrejmirtes merged commit 02071ab into phpstan:1.10.x Apr 29, 2024
@ondrejmirtes

Copy link
Copy Markdown
Member

Thank you.

@staabm staabm deleted the mysqli branch April 29, 2024 12:23
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.

3 participants