Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection_* functions are impure #2555

Merged
merged 9 commits into from Sep 29, 2023
Merged

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jul 29, 2023

@@ -60,6 +61,21 @@ public function enterNode(Node $node)
return null;
}

private function isHasSideEffectsAnnotated(Attribute $attr)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

according to a conversation with a contributor on JetBrains/phpstorm-stubs, the Pure attribute has different semantics based on the 1st parameter

Copy link
Contributor Author

@staabm staabm Aug 21, 2023

Choose a reason for hiding this comment

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

the regenerated function map changed a lot.. I am not 100% sure all these changes make sense - at least no tests fail

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm I think I over-think this thing and I should instead just have added a new entry to the functionMetadata_original.

@staabm staabm marked this pull request as ready for review August 21, 2023 15:45
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@staabm staabm marked this pull request as draft August 21, 2023 16:12
@staabm staabm marked this pull request as ready for review August 21, 2023 16:35
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes merged commit cbefca4 into phpstan:1.10.x Sep 29, 2023
416 of 417 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the impure-conn branch September 29, 2023 11:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants