Skip to content

Commit 3d928c9

Browse files
committed
Set App parameter as SensitiveParameter
1 parent 33f47e3 commit 3d928c9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/App.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
use LogicException;
5151
use ReflectionClass;
5252
use ReflectionException;
53+
use SensitiveParameter;
5354

5455
/**
5556
* Class App.
@@ -109,8 +110,11 @@ class App
109110
* @param array<string,mixed>|Config|string|null $config The config
110111
* @param bool $debug Set true to enable debug mode. False to disable.
111112
*/
112-
public function __construct(Config | array | string $config = null, bool $debug = false)
113-
{
113+
public function __construct(
114+
#[SensitiveParameter]
115+
Config | array | string $config = null,
116+
bool $debug = false
117+
) {
114118
if ($debug) {
115119
$this->debugStart();
116120
}

0 commit comments

Comments
 (0)