Skip to content

Commit

Permalink
feat(serialize): add dependency on h4kuna/serialize
Browse files Browse the repository at this point in the history
  • Loading branch information
h4kuna committed Jul 30, 2024
1 parent f85cc63 commit 65129bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
],
"require": {
"php": ">=8.1",
"h4kuna/serialize-polyfill": "^0.2.4",
"laravel/framework": "^9",
"psr/log": "^2 | ^3",
"psr/simple-cache": "^3.0"
Expand Down
3 changes: 2 additions & 1 deletion src/Console/Jobs/CommandInQueueJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace LaraStrict\Console\Jobs;

use h4kuna\Serialize\Serialize;
use Illuminate\Contracts\Console\Kernel;
use Illuminate\Contracts\Queue\ShouldQueue;
use Psr\Log\LoggerInterface;
Expand Down Expand Up @@ -31,7 +32,7 @@ public function __construct(
}

ksort($parameters);
$this->parametersKey = md5(serialize($parameters));
$this->parametersKey = md5(Serialize::encode($parameters));
}

public function handle(Kernel $kernel, ConsoleOutput $consoleOutput, LoggerInterface $logger): void
Expand Down

0 comments on commit 65129bb

Please sign in to comment.