Skip to content

Commit

Permalink
Cast feed source schema as object for addSchema method
Browse files Browse the repository at this point in the history
  • Loading branch information
jeppekroghitk committed Nov 14, 2024
1 parent 90f9757 commit 936bb02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/State/FeedSourceProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private function validateFeedSource(object $object, Operation $operation): void
private function prepareValidator(): Validator
{
$schemaStorage = new SchemaStorage();
$feedSourceValidationSchema = (new FeedSource())->getSchema();
$feedSourceValidationSchema = (object) (new FeedSource())->getSchema();
$schemaStorage->addSchema('file://contentSchema', $feedSourceValidationSchema);

return new Validator(new Factory($schemaStorage));
Expand Down

0 comments on commit 936bb02

Please sign in to comment.