kint-php / kint

Kint - Advanced PHP dumper
https://kint-php.github.io/kint/
MIT License
2.77k stars 291 forks source link

w/ Large object/array, getting ErrorException in color.php line 211: Undefined offset: 2 #214

Closed george-viaud closed 7 years ago

george-viaud commented 7 years ago

This seems to reference back to:

private static function _RGBtoHSL( array $rgb )
{
        list( $clrR, $clrG, $clrB ) = $rgb;

Data itself is rather sensitive so here is a partial dump:

ErrorException in color.php line 211: Undefined offset: 2 at HandleExceptions->handleError('8', 'Undefined offset: 2', '/var/www/REDACTED/vendor/raveren/kint/parsers/custom/color.php', '211', array('rgb' => array())) in color.php line 211
at Kint_Parsers_Color::_RGBtoHSL(array()) in color.php line 153
at Kint_Parsers_Color::_convert('GREEN ') in color.php line 46
at Kint_Parsers_Color->_parse('GREEN ') in kintParser.class.php line 132
at kintParser::factory('GREEN ') in kintParser.class.php line 383

Many thanks for your efforts!

raveren commented 7 years ago

thanks for the report, please try it out now :)

george-viaud commented 7 years ago

Perfect - thanks!