Skip to content

added SscanfFunctionDynamicReturnTypeExtension return type extension#1434

Merged
ondrejmirtes merged 4 commits intophpstan:1.7.xfrom
staabm:sscanf
Jun 17, 2022
Merged

added SscanfFunctionDynamicReturnTypeExtension return type extension#1434
ondrejmirtes merged 4 commits intophpstan:1.7.xfrom
staabm:sscanf

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jun 17, 2022

No description provided.

@staabm staabm marked this pull request as ready for review June 17, 2022 13:54
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.

Comment on lines 8 to 9
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.

the 2 test-cases which existed before.. now with just a string format, because otherwise we would not get the same results

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.

Please change assertions of the existing sscanf('20-20', '%d-%d', $first, $second) test and add sscanf($s, $s, $first, $second) as a separate one.

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.

done

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jun 17, 2022

built errors seem unrelated

Comment on lines 8 to 9
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.

Please change assertions of the existing sscanf('20-20', '%d-%d', $first, $second) test and add sscanf($s, $s, $first, $second) as a separate one.

@ondrejmirtes ondrejmirtes merged commit e1a22b2 into phpstan:1.7.x Jun 17, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@staabm staabm deleted the sscanf branch June 18, 2022 06:24
@Alkarex
Copy link
Copy Markdown

Alkarex commented Aug 9, 2022

Maybe a regression phpstan/phpstan#7764

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.

4 participants