Skip to content

XmlReader::next|read() has side-effects#1551

Merged
ondrejmirtes merged 2 commits intophpstan:1.8.xfrom
staabm:xmlreader
Jul 25, 2022
Merged

XmlReader::next|read() has side-effects#1551
ondrejmirtes merged 2 commits intophpstan:1.8.xfrom
staabm:xmlreader

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jul 25, 2022

@staabm staabm marked this pull request as ready for review July 25, 2022 19:07
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.

  1. The error on line 39 here https://phpstan.org/r/0a7a5b40-8c5b-40af-bd7d-66cea71e8363 isn't tested
  2. Instead of rule-specific tests, NodeScopeResolverTest would be more fitting here.

@staabm
Copy link
Copy Markdown
Contributor Author

staabm commented Jul 25, 2022

thx, turned into a NodeScopeResolverTest

@ondrejmirtes ondrejmirtes merged commit 5aa9a3c into phpstan:1.8.x Jul 25, 2022
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

@staabm staabm deleted the xmlreader branch June 21, 2023 15:09
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.

XmlReader->read() sideeffects

2 participants