Added allowed type for ternary operator#8
Open
Big-Shark wants to merge 1 commit intokohana:masterfrom
Big-Shark:patch-1
Open
Added allowed type for ternary operator#8Big-Shark wants to merge 1 commit intokohana:masterfrom Big-Shark:patch-1
Big-Shark wants to merge 1 commit intokohana:masterfrom
Big-Shark:patch-1
Conversation
…rds/Kohana/Sniffs/Operators/TernaryOperatorSniff.php on line 77
Error Line: <?=isset($title)?$title:Kohana::$config->load('site.title');?>
|
This does not seem to fix the problem... or there is another, similar error present. PHP Notice: Undefined offset: -1 in /usr/share/php/PHP/CodeSniffer/File.php on line 2602
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/php/PHP/CodeSniffer/CLI.php:614
PHP 4. PHP_CodeSniffer->processFile() /usr/share/php/PHP/CodeSniffer.php:466
PHP 5. PHP_CodeSniffer->_processFile() /usr/share/php/PHP/CodeSniffer.php:1273
PHP 6. PHP_CodeSniffer_File->start() /usr/share/php/PHP/CodeSniffer.php:1389
PHP 7. Kohana_Sniffs_Operators_TernaryOperatorSniff->process() /usr/share/php/PHP/CodeSniffer/File.php:492
PHP 8. Kohana_Sniffs_Operators_TernaryOperatorSniff->_evaluate_portion() /data/dev/kohana-standards/PHP/CodeSniffer/Standards/Kohana/Sniffs/Operators/TernaryOperatorSniff.php:117
PHP 9. PHP_CodeSniffer_File->findPrevious() /data/dev/kohana-standards/PHP/CodeSniffer/Standards/Kohana/Sniffs/Operators/TernaryOperatorSniff.php:145
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug Fix
PHP Notice: Undefined index: in /usr/share/php/PHP/CodeSniffer/Standards/Kohana/Sniffs/Operators/TernaryOperatorSniff.php on line 77
PHP Notice: Undefined index: in /usr/share/php/PHP/CodeSniffer/Standards/Kohana/Sniffs/Operators/TernaryOperatorSniff.php on line 104
Error Line: load('site.title');?>