Skip to content

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

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

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

Conversation

@staabm

@staabm staabm commented Jul 25, 2022

Copy link
Copy Markdown
Contributor

@staabm
staabm marked this pull request as ready for review July 25, 2022 19:07

@ondrejmirtes ondrejmirtes left a comment

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.

  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

staabm commented Jul 25, 2022

Copy link
Copy Markdown
Contributor Author

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