Closed andygrunwald closed 9 years ago
Daniel Wagner posted an issue in the old forge bugtracker: Bug #67436: Undefined index: scope_opener:
version 2.3.2 (stable) applied to some old code without curly brackets:
foreach($conf['extraMarkers.'] as $marker => $value) $markerArray['###' . $marker . '###'] = $value;
Undefined index: scope_opener in .../php_codesniffer/CodeSniffer/Standards/TYPO3SniffPool/Sniffs/ControlStructures/UnusedVariableInForEachLoopSniff.php on line 75 Undefined index: scope_closer in .../php_codesniffer/CodeSniffer/Standards/TYPO3SniffPool/Sniffs/ControlStructures/UnusedVariableInForEachLoopSniff.php on line 76 PHP Stack trace: PHP 1. {main}() .../vendor/squizlabs/php_codesniffer/scripts/phpcs:0 PHP 2. PHP_CodeSniffer_CLI->runphpcs() .../vendor/squizlabs/php_codesniffer/scripts/phpcs:25 PHP 3. PHP_CodeSniffer_CLI->process() .../vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php:95 PHP 4. PHP_CodeSniffer->processFiles() .../vendor/squizlabs/php_codesniffer/CodeSniffer/CLI.php:867 PHP 5. PHP_CodeSniffer->processFile() .../vendor/squizlabs/php_codesniffer/CodeSniffer.php:619 PHP 6. PHP_CodeSniffer->_processFile() .../vendor/squizlabs/php_codesniffer/CodeSniffer.php:1679 PHP 7. PHP_CodeSniffer_File->start() .../vendor/squizlabs/php_codesniffer/CodeSniffer.php:1801 PHP 8. TYPO3SniffPool_Sniffs_ControlStructures_UnusedVariableInForEachLoopSniff->process() .../vendor/squizlabs/php_codesniffer/CodeSniffer/File.php:567
Daniel Wagner posted an issue in the old forge bugtracker: Bug #67436: Undefined index: scope_opener:
version 2.3.2 (stable) applied to some old code without curly brackets: