You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The sniff Generic.NamingConventions.CamelCapsFunctionName.MethodDoubleUnderscore does not known magic methods __serialize and __unserialize.
7 | ERROR | Method name "Test::__serialize" is invalid; only PHP
| | magic methods should be prefixed with a double
| | underscore
| | (Generic.NamingConventions.CamelCapsFunctionName.MethodDoubleUnderscore)
12 | ERROR | Method name "Test::__unserialize" is invalid; only PHP
| | magic methods should be prefixed with a double
| | underscore
| | (Generic.NamingConventions.CamelCapsFunctionName.MethodDoubleUnderscore)
Expected behavior
None error
Versions (please complete the following information):
OS: [*]
PHP: [7.4]
PHPCS: [3.5.5 (stable)]
Standard: [Generic]
The text was updated successfully, but these errors were encountered:
Describe the bug
The sniff
Generic.NamingConventions.CamelCapsFunctionName.MethodDoubleUnderscore
does not known magic methods__serialize
and__unserialize
.Code sample
To reproduce
Expected behavior
None error
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: