Skip to content

Commit

Permalink
Change payload type from array to mixed
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Sep 13, 2023
1 parent cc53ed1 commit 364d371
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scaffolder/src/Declaration/JobHandlerDeclaration.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function declare(): void
->setType('string');

$method->addParameter('payload')
->setType('array');
->setType('mixed');

$method->addParameter('headers')
->setType('array');
Expand Down
1 change: 1 addition & 0 deletions src/Scaffolder/tests/Command/JobHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public function testScaffold(): void
$this->assertStringContainsString('strict_types=1', $content);
$this->assertStringContainsString('{project-name}', $content);
$this->assertStringContainsString('@author {author-name}', $content);
$this->assertStringContainsString('function invoke(string $id, mixed $payload, array $headers)', $content);
$this->assertStringContainsString('Sample Job Handler', $reflection->getDocComment());
$this->assertTrue($reflection->hasMethod('invoke'));
}
Expand Down

0 comments on commit 364d371

Please sign in to comment.