Skip to content

Commit

Permalink
tests: avoid (objec) type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
xificurk committed Feb 4, 2023
1 parent 0b57432 commit 1340de5
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -80,7 +80,9 @@ class PreventNestedHandlingMiddlewareTest extends TestCase

private function createTestEnvelope(): Envelope
{
return new Envelope((object) ['testMessage' => true], [new BusNameStamp('test')]);
$message = new \stdClass();
$message->testMessage = true;
return new Envelope($message, [new BusNameStamp('test')]);
}

}
Expand Down

0 comments on commit 1340de5

Please sign in to comment.