File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ public static function sanitizeData($data): string
168168 // All other non-array values are fine
169169 if (!\is_array ($ data )) {
170170 // If parts of the string are not UTF8 we assume it to be a binary string
171- if (!\mb_check_encoding ($ data , 'UTF-8 ' )) {
171+ if (\is_string ( $ data ) && !\mb_check_encoding ($ data , 'UTF-8 ' )) {
172172 return '0x ' . \bin2hex ($ data );
173173 }
174174
Original file line number Diff line number Diff line change 11{
22 "require" : {
33 "squizlabs/php_codesniffer" : " ^3.5" ,
4- "slevomat/coding-standard" : " ^6 .0"
4+ "slevomat/coding-standard" : " ^7 .0"
55 }
66}
Original file line number Diff line number Diff line change 11{
22 "require" : {
3- "phpstan/phpstan" : " ^0.12 "
3+ "phpstan/phpstan" : " ^1.0 "
44 }
55}
You can’t perform that action at this time.
0 commit comments