Bug #19691 [Com]: SubversionPropertiesSniff fails to find missing properties
| From: | kevin.winahradsky@gmail.com | Date: | Tue, 06 Nov 2012 08:28:03 +0000 |
| Subject: | Bug #19691 [Com]: SubversionPropertiesSniff fails to find missing properties | ||
| References: | 1 | Groups: | php.pear.bugs |
| Request: | Send a blank email to pear-bugs+get-9292@lists.php.net to get a copy of this message | ||
Edit report at https://pear.php.net/bugs/bug.php?id=19691&edit=1
ID: 19691
Comment by: kevin.winahradsky@gmail.com
Reported By: kevin dot winahradsky at gmail dot com
Summary: SubversionPropertiesSniff fails to find missing
properties
Status: Feedback
Type: Bug
Package: PHP_CodeSniffer
Operating System: Linux
Package Version: 1.4.1
PHP Version: 5.3.10
Assigned To: squiz
Roadmap Versions:
New Comment:
Changing it to something like "$allProperties = $properties +
$this->properties;" and then iterating over $allProperties in the
foreach loop is what seems to be working for me.
Previous Comments:
------------------------------------------------------------------------
[2012-11-06 04:46:08] squiz
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
I didn't write this one, so I really have no idea why that line is in
there. But it doesn't
make any sense to me either.
I've removed it and pushed a commit:
https://github.com/squizlabs/PHP_CodeSniffer/commit/8787a9dbb9b038fbafd1c78da
45846253e9b56f6
If you remove that line, does the sniff work for you?
------------------------------------------------------------------------
[2012-11-05 17:14:38] kwinahradsky
Description:
------------
The "$properties += $this->properties;" line in the process function of
the Generic_Sniffs_VersionControl_SubversionPropertiesSniff class causes
properties you are looking for to be added to the properties that exist.
This causes the test for missing properties to fail as the code now
thinks the file has all the properties you are looking for it to have
when it really doesn't.
------------------------------------------------------------------------
--
Edit this bug report at https://pear.php.net/bugs/bug.php?id=19691&edit=1