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

  ID: 20073
  Updated by: gsherwood@squiz.net
  Reported By: maximlevitan@gmail.com
  Summary: Showing in console notice "Undefined offset"
-Status: Open
+Status: Feedback
  Type: Bug
  Package: PHP_CodeSniffer
  Operating System: Linux CentOS 64
  Package Version: 1.4.6
  PHP Version: 5.4.17
-Assigned To:
+Assigned To: squiz
  Roadmap Versions:
  New Comment:

-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: squiz
Given the reporter is unconfirmed, this comment may never be seen, but:

The only way to fix this problem is for you to provide some sample code
that causes
the notice. Problems like these are typically caused by the tokenizer
not parsing the
code correctly. The standard is not known to me (it doesn't ship with
PHPCS) but it
may not be the cause anyway.

If you are unable to provide some code, there really isn't anything I
can do.


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

[2013-09-24 16:38:59] #45f60041b73c589404c

Description:
------------
On Kohana standart checking:

PHP Notice: Undefined offset: -1 in
/usr/share/pear/PHP/CodeSniffer/File.php on line 2603
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpcs:0
PHP 2. PHP_CodeSniffer_CLI->process() /usr/bin/phpcs:37
PHP 3. PHP_CodeSniffer->process()
/usr/share/pear/PHP/CodeSniffer/CLI.php:580
PHP 4. PHP_CodeSniffer->processFile()
/usr/share/pear/PHP/CodeSniffer.php:509
PHP 5. PHP_CodeSniffer->_processFile()
/usr/share/pear/PHP/CodeSniffer.php:1332
PHP 6. PHP_CodeSniffer_File->start()
/usr/share/pear/PHP/CodeSniffer.php:1454
PHP 7. Kohana_Sniffs_Operators_TernaryOperatorSniff-
process() /usr/share/pear/PHP/CodeSniffer/File.php:492
PHP 8. Kohana_Sniffs_Operators_TernaryOperatorSniff-
_evaluate_portion()
/usr/share/pear/PHP/CodeSniffer/Standards/Kohana/Sniffs/Op
erators/TernaryOperatorSniff.php:116
PHP 9. PHP_CodeSniffer_File->findPrevious()
/usr/share/pear/PHP/CodeSniffer/Standards/Kohana/Sniffs/Op
erators/TernaryOperatorSniff.php:144

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedSep 24, '13 at 10:30p
activeSep 24, '13 at 10:30p
posts1
users1
websitepear.php.net

1 user in discussion

Gsherwood: 1 post

People

Translate

site design / logo © 2022 Grokbase