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

Add serialize and unserialize to list of known magic methods #3031

Merged
merged 2 commits into from
Aug 10, 2020

Conversation

filips123
Copy link
Contributor

This adds serialize and unserialize to list of known magic methods and fixes #3029. I also updated list a bit to match the same order as list in PHP documentation to make comparing lists in the future easier.

'construct' => true,
'destruct' => true,
'call' => true,
'callstatic ' => true,
Copy link
Member

Choose a reason for hiding this comment

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

A space character has been inserted at the end of the string callstatic, which will cause this sniff to produce errors for this magic method.

'construct' => true,
'destruct' => true,
'call' => true,
'callstatic ' => true,
Copy link
Member

Choose a reason for hiding this comment

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

A space character has been inserted at the end of the string callstatic, which is causing the failing unit tests.

@gsherwood
Copy link
Member

Thanks a lot for fixing that up

@gsherwood gsherwood added this to Idea Bank in PHPCS v3 Development via automation Jul 23, 2020
@gsherwood gsherwood added this to the 3.5.6 milestone Jul 23, 2020
gsherwood added a commit that referenced this pull request Aug 10, 2020
@gsherwood gsherwood merged commit 23a2beb into squizlabs:master Aug 10, 2020
PHPCS v3 Development automation moved this from Idea Bank to Ready for Release Aug 10, 2020
@gsherwood
Copy link
Member

Thanks for fixing up that issue, and thanks for the PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
PHPCS v3 Development
Ready for Release
Development

Successfully merging this pull request may close these issues.

Allow magic methods __serialize and __unserialize in CamelCapsFunctionNameSniff
2 participants