FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=19490&edit=1

ID: 19490
Updated by: maik@phpkuh.de
Reported By: maik at phpkuh dot de
-Summary: Zend protected property underscore and camel caps
issue
+Summary: Zend protected property underscore and camel caps
issue (in trait)
Status: Open
Type: Bug
Package: PHP_CodeSniffer
Operating System: Ubuntu 12.04
Package Version: 1.3.4
PHP Version: 5.4.4
Roadmap Versions:
New Comment:

-Summary: Zend protected property underscore and camel caps
issue
+Summary: Zend protected property underscore and camel caps
issue (in trait)
For a `trait` that is. For `class` it is working. Sorry!


Previous Comments:
------------------------------------------------------------------------

[2012-06-30 21:47:41] ookami

Description:
------------
According to standards (
http://framework.zend.com/manual/en/coding-standard.naming-conventions.html
) a protected or private property must have a leading underscore. It is
not detected, but an (incorrect) error is generated for invalid
"camelCaps".

Test script:
---------------
<?php

class someClass
{
protected $_var = true;
}

Actual result:
--------------
5 | ERROR | Variable "_var" is not in valid camel caps format

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 30, '12 at 7:44p
activeJun 30, '12 at 7:44p
posts1
users1
websitepear.php.net

1 user in discussion

Maik: 1 post

People

Translate

site design / logo © 2022 Grokbase