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

serialize/unserialize is not allowed in enum #1643

Merged
merged 1 commit into from Aug 25, 2022

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Aug 23, 2022

@@ -69,6 +70,15 @@ public function processNode(Node $node, Scope $scope): array
}
}

// serialize/unserialize is not considered a magic method by PhpParser
Copy link
Contributor Author

@staabm staabm Aug 23, 2022

Choose a reason for hiding this comment

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

php-parser considers these methods as magic starting with the next release with nikic/PHP-Parser#860

@staabm staabm marked this pull request as ready for review August 25, 2022 06:13
@ondrejmirtes ondrejmirtes merged commit 256e12a into phpstan:1.8.x Aug 25, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the enum-serialize branch August 25, 2022 07: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
2 participants