diff --git a/vendor/kint-php/kint/inc/kintParser.class.php b/vendor/kint-php/kint/inc/kintParser.class.php index 48153dc..32cde7f 100644 --- a/vendor/kint-php/kint/inc/kintParser.class.php +++ b/vendor/kint-php/kint/inc/kintParser.class.php @@ -460,9 +460,9 @@ private static function _parse_object( &$variable, kintVariableData $variableDat * These prepended values have null bytes on either side. * http://www.php.net/manual/en/language.types.array.php#language.types.array.casting */ - if ( $key{0} === "\x00" ) { + if ( $key[0] === "\x00" ) { - $access = $key{1} === "*" ? "protected" : "private"; + $access = $key[1] === "*" ? "protected" : "private"; // Remove the access level from the variable name $key = substr( $key, strrpos( $key, "\x00" ) + 1 ); @@ -605,4 +605,4 @@ private static function _parse_unknown( &$variable, kintVariableData $variableDa $variableData->value = var_export( $variable, true ); } -} \ No newline at end of file +}