mirror of
https://github.com/filp/whoops.git
synced 2026-09-13 19:26:21 +00:00
Prevent „strlen() expects parameter 1 to be string, array given“ Warning
This commit is contained in:
@@ -705,7 +705,7 @@ class PrettyPageHandler extends Handler
|
||||
|
||||
$values = $superGlobal;
|
||||
foreach ($blacklisted as $key) {
|
||||
if (isset($superGlobal[$key])) {
|
||||
if (isset($superGlobal[$key]) && is_string($superGlobal[$key])) {
|
||||
$values[$key] = str_repeat('*', strlen($superGlobal[$key]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user