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
Comment #1
klausicould you post the code snippet that triggers the error?
Comment #2
wouter99999 commentedcode snippet:
$_SERVER['REMOTE_ADDR'] = '127.0.0.1';
Comment #3
klausiCan't reproduce that. Please try again with the latest PHP CodeSniffer release.
Comment #4
klausiReopen if this is still an issue.
Comment #5
wouter99999 commentedIt looks ok now.
Comment #6
wouter99999 commentedIt looks ok now.