Skip to content

Commit dc8ca2a

Browse files
Remove contructor
Co-authored-by: Michal Sniatala <michal@sniatala.pl>
1 parent 9f77ab8 commit dc8ca2a

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

system/Context/Context.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,14 @@ final class Context
2424
*
2525
* @var array<string, mixed>
2626
*/
27-
private array $data;
27+
private array $data = [];
2828

2929
/**
3030
* The data that is stored but not included in logs.
3131
*
3232
* @var array<string, mixed>
3333
*/
34-
private array $hiddenData;
35-
36-
public function __construct()
37-
{
38-
$this->data = [];
39-
$this->hiddenData = [];
40-
}
34+
private array $hiddenData = [];
4135

4236
/**
4337
* Set a key-value pair to the context.

0 commit comments

Comments
 (0)