We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e225b5b commit 3fd247dCopy full SHA for 3fd247d
3 files changed
src/Debug.php
@@ -168,7 +168,7 @@ public static function sanitizeData($data): string
168
// All other non-array values are fine
169
if (!\is_array($data)) {
170
// If parts of the string are not UTF8 we assume it to be a binary string
171
- if (!\mb_check_encoding($data, 'UTF-8')) {
+ if (\is_string($data) && !\mb_check_encoding($data, 'UTF-8')) {
172
return '0x' . \bin2hex($data);
173
}
174
vendor-bin/phpcs/composer.json
@@ -1,6 +1,6 @@
1
{
2
"require": {
3
"squizlabs/php_codesniffer": "^3.5",
4
- "slevomat/coding-standard": "^6.0"
+ "slevomat/coding-standard": "^7.0"
5
6
vendor-bin/phpstan/composer.json
@@ -1,5 +1,5 @@
- "phpstan/phpstan": "^0.12"
+ "phpstan/phpstan": "^1.0"
0 commit comments