Skip to content

Commit

Permalink
fixup! Refactor the ErrorHandler into a dynamic class
Browse files Browse the repository at this point in the history
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
  • Loading branch information
ChristophWurst committed May 24, 2022
1 parent e4b6fbe commit 1992a60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/private/Log/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ public function __construct(LoggerInterface $logger,
}

/**
* remove password in URLs
* @param string $msg
* @return string
* Remove password in URLs
*/
private static function removePassword($msg) {
private static function removePassword(string $msg): string {
return preg_replace('#//(.*):(.*)@#', '//xxx:xxx@', $msg);
}

Expand Down

0 comments on commit 1992a60

Please sign in to comment.