diff --git a/src/Illuminate/Log/Context/Repository.php b/src/Illuminate/Log/Context/Repository.php index 35779da3e70..921e4823884 100644 --- a/src/Illuminate/Log/Context/Repository.php +++ b/src/Illuminate/Log/Context/Repository.php @@ -11,6 +11,7 @@ use Illuminate\Support\Traits\Conditionable; use Illuminate\Support\Traits\Macroable; use RuntimeException; +use SensitiveParameter; use Throwable; class Repository @@ -193,7 +194,7 @@ public function add($key, $value = null) * @param mixed $value * @return $this */ - public function addHidden($key, $value = null) + public function addHidden($key, #[SensitiveParameter] $value = null) { $this->hidden = array_merge( $this->hidden, @@ -256,7 +257,7 @@ public function addIf($key, $value) * @param mixed $value * @return $this */ - public function addHiddenIf($key, $value) + public function addHiddenIf($key, #[SensitiveParameter] $value) { if (! $this->hasHidden($key)) { $this->addHidden($key, $value);