PHP Notice: Undefined offset: 93 in /usr/share/php/PHP/CodeSniffer/File.php on line 2439
PHP Stack trace:
With this sniff I get:
PHP 1. {main}() /usr/bin/phpcs:0
PHP 2. PHP_CodeSniffer_CLI->process() /usr/bin/phpcs:37
PHP 3. PHP_CodeSniffer->process() /usr/share/php/PHP/CodeSniffer/CLI.php:551
PHP 4. PHP_CodeSniffer->processFile() /usr/share/php/PHP/CodeSniffer.php:476
PHP 5. PHP_CodeSniffer->_processFile() /usr/share/php/PHP/CodeSniffer.php:1159
PHP 6. PHP_CodeSniffer_File->start() /usr/share/php/PHP/CodeSniffer.php:1279
PHP 7. Drupal_Sniffs_Semantics_RemoteAddressSniff->process() /usr/share/php/PHP/CodeSniffer/File.php:470
PHP 8. PHP_CodeSniffer_File->getTokensAsString() /usr/share/php/PHP/CodeSniffer/Standards/Drupal/Sniffs/Semantics/RemoteAddressSniff.php:47

Comments

klausi’s picture

Status: Active » Postponed (maintainer needs more info)

could you post the code snippet that triggers the error?

wouter99999’s picture

code snippet:

$_SERVER['REMOTE_ADDR'] = '127.0.0.1';

klausi’s picture

Can't reproduce that. Please try again with the latest PHP CodeSniffer release.

klausi’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Reopen if this is still an issue.

wouter99999’s picture

It looks ok now.

wouter99999’s picture

It looks ok now.