Skip to content

Commit

Permalink
Parameter #2 $xml of static method LastDragon_ru\LaraASP\Testing\Mixi…
Browse files Browse the repository at this point in the history
…ns\Assert::assertXmlMatchesSchema() expects DOMDocument|SplFileInfo|string, string|false given.
  • Loading branch information
LastDragon-ru committed Aug 14, 2021
1 parent 1755088 commit 602051b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/testing/src/Mixins/TestResponseMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function assertStatusCode(): Closure {
public function assertXmlMatchesSchema(): Closure {
return function (SplFileInfo $schema, string $message = ''): TestResponse {
/** @var TestResponse $this */
Assert::assertXmlMatchesSchema($schema, $this->getContent(), $message);
Assert::assertXmlMatchesSchema($schema, (string) $this->getContent(), $message);

return $this;
};
Expand Down

0 comments on commit 602051b

Please sign in to comment.