Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit c237ba5

Browse files
committed
fix(processes): Mark DbRunnerProcessPayload as allowed_classes
It does not matter, but it awas added to prevent future bugs.
1 parent 50f7a2c commit c237ba5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Service/Processes/ProcessService.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace App\Service\Processes;
66

7+
use App\Service\Types\DbRunnerProcessPayload;
78
use App\Service\Types\ProcessError;
89

910
/**
@@ -22,7 +23,11 @@ public function run(): void
2223
throw new \RuntimeException('could not read from stdin');
2324
}
2425

25-
$input = unserialize($stdin);
26+
$input = unserialize($stdin, [
27+
'allowed_classes' => [
28+
DbRunnerProcessPayload::class,
29+
],
30+
]);
2631
if (!\is_object($input)) {
2732
throw new \InvalidArgumentException('input must be an object');
2833
}

0 commit comments

Comments
 (0)