Skip to content

Commit

Permalink
Added casting when building new FileResource from SplFile
Browse files Browse the repository at this point in the history
  • Loading branch information
ViniTou committed Mar 17, 2020
1 parent 524c44c commit 590ec3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Translation/Loader/Symfony/XliffLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function load($resource, $locale, $domain = 'messages')
$catalogue->set($id, (string) $translation->target, $domain);
}

$catalogue->addResource(new FileResource($resource));
$catalogue->addResource(new FileResource((string) $resource));

return $catalogue;
}
Expand Down

0 comments on commit 590ec3d

Please sign in to comment.