Skip to content

Commit

Permalink
Merge branch 'sensitive-parameter' into development
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 28, 2023
2 parents f1c93e8 + 3d928c9 commit 5efd2aa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/App.php
Expand Up @@ -51,6 +51,7 @@
use LogicException;
use ReflectionClass;
use ReflectionException;
use SensitiveParameter;

/**
* Class App.
Expand Down Expand Up @@ -110,8 +111,11 @@ class App
* @param array<string,mixed>|Config|string|null $config The config
* @param bool $debug Set true to enable debug mode. False to disable.
*/
public function __construct(Config | array | string $config = null, bool $debug = false)
{
public function __construct(
#[SensitiveParameter]
Config | array | string $config = null,
bool $debug = false
) {
if ($debug) {
$this->debugStart();
}
Expand Down

0 comments on commit 5efd2aa

Please sign in to comment.