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

list of private member variables not recognized #14

Closed
white-gecko opened this issue Nov 21, 2011 · 1 comment
Closed

list of private member variables not recognized #14

white-gecko opened this issue Nov 21, 2011 · 1 comment
Assignees
Milestone

Comments

@white-gecko
Copy link
Member

The code sniffer handles the second variable in a list as public.

In the following example both variables are private, but the code sniffers recognizes $_onMap as private, but $_inCluster as public.

 private $_onMap, $_inCluster;

I get following sniffer error:

| ERROR | Public member variable "_inCluster" must not contain a leading
|       | underscore
|       | (Zend.NamingConventions.ValidVariableName.PublicHasUnderscore)
@ghost ghost assigned larseidam Nov 21, 2011
@seebi
Copy link
Member

seebi commented Feb 28, 2012

@white-gecko since you need to document both vars independently, this is forbidden as well right?

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

No branches or pull requests

3 participants