Skip to content

Regression test#1762

Merged
ondrejmirtes merged 3 commits intophpstan:1.8.xfrom
staabm:regress8058
Oct 3, 2022
Merged

Regression test#1762
ondrejmirtes merged 3 commits intophpstan:1.8.xfrom
staabm:regress8058

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Sep 26, 2022

@staabm staabm marked this pull request as ready for review September 26, 2022 13:51
Copy link
Copy Markdown
Member

@ondrejmirtes ondrejmirtes left a comment

Choose a reason for hiding this comment

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

It'd be nice to test both pre-PHP 8.2 (function does not exist) and post-PHP 8.2 (function exists) behaviour.

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.

pretty interessting that only the method is undefined, but not the \mysqli_execute_query function

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.

There's a separate rule for that - CallToNonExistentFunctionRule.

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.

There's a separate rule for that - CallToNonExistentFunctionRule.

@ondrejmirtes ondrejmirtes changed the title added regression test Regression test Oct 3, 2022
@ondrejmirtes ondrejmirtes merged commit a57127c into phpstan:1.8.x Oct 3, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@staabm staabm deleted the regress8058 branch October 3, 2022 13:03
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.

Call to an undefined method mysqli::execute_query().

3 participants