Skip to content

Instantly share code, notes, and snippets.

@dieppon
Last active February 8, 2022 16:14
Show Gist options
  • Save dieppon/234431de5bbaecb8bf234b3f736fb616 to your computer and use it in GitHub Desktop.
Save dieppon/234431de5bbaecb8bf234b3f736fb616 to your computer and use it in GitHub Desktop.
Kint Debugger » Please update for PHP 7.4 Please update for PHP 7.4
diff --git a/vendor/kint/inc/kintParser.class.php b/vendor/kint/inc/kintParser.class.php
index 7d57fe9..5b5984b 100644
--- a/vendor/kint/inc/kintParser.class.php
+++ b/vendor/kint/inc/kintParser.class.php
@@ -460,9 +460,9 @@ abstract class kintParser extends kintVariableData
* 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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment