Skip to content

Commit 5efd2aa

Browse files
committed
Merge branch 'sensitive-parameter' into development
2 parents f1c93e8 + 3d928c9 commit 5efd2aa

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
@@ -51,6 +51,7 @@
5151
use LogicException;
5252
use ReflectionClass;
5353
use ReflectionException;
54+
use SensitiveParameter;
5455

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

0 commit comments

Comments
 (0)