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

ID: 19580
Updated by: [email protected]
Reported By: patrik at votocek dot cz
Summary: PSR-2 - extend / implements full class - false
positive
-Status: Open
+Status: Closed
Type: Bug
Package: PHP_CodeSniffer
Package Version: 1.3.6
PHP Version: Irrelevant
-Assigned To:
+Assigned To: squiz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: squiz
Fixed in Github repo:
https://github.com/squizlabs/PHP_CodeSniffer/commit/f5d4bec96a3ce96985b887a34
a4a2400e9cad533


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

[2012-08-24 21:18:35] vrtak

Description:
------------
If class extends or/and implements class or interface with
fullclass PHPCS report false positive errors.



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

namespace App;

class Foo extends \Nette\Object
{
}


Actual result:
--------------
FILE: c:\Workspace\Test\app\presenters\Foo.php
------------------------------------------------------------------------
--------

FOUND 2 ERROR(S) AFFECTING 1 LINE(S)
------------------------------------------------------------------------
--------

5 | ERROR | Expected 0 spaces between "Nette" and comma;
$1 found
5 | ERROR | Expected 1 space before "Object"; 5 found
------------------------------------------------------------------------
--------

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedAug 29, '12 at 3:58a
activeAug 29, '12 at 3:58a
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2023 Grokbase