Skip to content

Commit ac442fd

Browse files
committed
eloquent workflow persistence
1 parent 9839e81 commit ac442fd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"vendor/bin/phpstan analyse --memory-limit=1G -v"
4444
],
4545
"format": [
46-
"vendor/bin/rector",
47-
"php-cs-fixer fix --allow-risky=yes"
46+
"@refactor",
47+
"@style"
4848
],
4949
"style": [
5050
"php-cs-fixer fix --allow-risky=yes"

src/Workflow/Persistence/EloquentPersistence.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function save(string $workflowId, WorkflowInterrupt $interrupt): void
3131

3232
public function load(string $workflowId): WorkflowInterrupt
3333
{
34-
/** @var Model $model */
34+
/** @var Model&object{interrupt: string} $model */
3535
$model = new $this->modelClass();
3636

3737
$record = $model->newQuery()

tests/Workflow/Persistence/EloquentPersistenceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function setUp(): void
3434
$manager->setAsGlobal();
3535
$manager->bootEloquent();
3636

37-
Manager::schema()->create('workflow_interrupts', function (Blueprint $table) {
37+
Manager::schema()->create('workflow_interrupts', function (Blueprint $table): void {
3838
$table->id();
3939
$table->string('workflow_id')->unique();
4040
$table->longText('interrupt')->charset('binary');

0 commit comments

Comments
 (0)