Skip to content

Commit 1a8cf4b

Browse files
authored
fix: null safety handler when empty is passed to the masking method
1 parent 5302cab commit 1a8cf4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Exception/Handler/PrettyPageHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ public function hideSuperglobalKey($superGlobalName, $key)
832832
*/
833833
private function masked(array $superGlobal, $superGlobalName)
834834
{
835-
$blacklisted = $this->blacklist[$superGlobalName];
835+
$blacklisted = $this->blacklist[$superGlobalName ?? ''] ?? [];
836836

837837
$values = $superGlobal;
838838

0 commit comments

Comments
 (0)