Skip to content

Commit 0201f03

Browse files
authored
Merge pull request #7 from emielmolenaar/fix-faker-dev
Create a new instance of Anonymizer in handle method of command
2 parents 20b4af6 + 41a9859 commit 0201f03

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/Commands/AnonymizerCommand.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,10 @@ class AnonymizerCommand extends Command
2525

2626
private Anonymizer $service;
2727

28-
29-
public function __construct()
28+
public function handle(): int
3029
{
31-
parent::__construct();
32-
3330
$this->service = new Anonymizer();
34-
}
3531

36-
public function handle(): int
37-
{
3832
if (!$this->confirmToProceed('Environment "'.config('app.env').'" blocked.', function () {
3933
return $this->service->isBlockedEnvironment();
4034
})) {

0 commit comments

Comments
 (0)