Skip to content

Commit

Permalink
Set App parameter as SensitiveParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Nov 28, 2023
1 parent 33f47e3 commit 3d928c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/App.php
Expand Up @@ -50,6 +50,7 @@
use LogicException;
use ReflectionClass;
use ReflectionException;
use SensitiveParameter;

/**
* Class App.
Expand Down Expand Up @@ -109,8 +110,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 3d928c9

Please sign in to comment.