Bug #19418 [Opn->Fbk]: Traits are not handled properly
| From: | gsherwood at squiz dot net | Date: | Mon, 14 May 2012 01:12:05 +0000 |
| Subject: | Bug #19418 [Opn->Fbk]: Traits are not handled properly | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-8665@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19418&edit=1
ID: 19418
Updated by: gsherwood@squiz.net
Reported By: sb at sebastian-bergmann dot de
Summary: Traits are not handled properly
-Status: Open
+Status: Feedback
Type: Bug
Package: PHP_CodeSniffer
Operating System: Irrelevant
Package Version: 1.3.3
PHP Version: 5_4 SVN-2012-05-13
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
This is a duplicate of bug #19381. Was fixed recently but is not
released yet.
Please try the latest version from the github repo and see if that works
for you:
https://github.com/squizlabs/PHP_CodeSniffer
Alternatively, the patch was fairly small, so you could apply it
manually if needed:
https://github.com/squizlabs/PHP_CodeSniffer/commit/f6e857c4baa702493da80efb2c
de212ae75389e3
Previous Comments:
------------------------------------------------------------------------
[2012-05-13 07:13:53] sebastian
Description:
------------
PHP_CodeSniffer / Not all PHP_CodeSniffer sniffs handle(s) traits
properly.
Test script:
---------------
<?php
trait Foo
{
public function jsonSerialize()
{
Expected result:
----------------
No violations reported
Actual result:
--------------
2 | ERROR | Constants must be uppercase; expected FOO but found Foo
4 | ERROR | Line indented incorrectly; expected 0 spaces, found 4
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19418&edit=1