From 590ec3dd07167f5b7ebc4820e01eaa920887fd23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dawid=20Parafi=C5=84ski?= Date: Tue, 17 Mar 2020 18:05:31 +0100 Subject: [PATCH] Added casting when building new FileResource from SplFile --- Translation/Loader/Symfony/XliffLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Translation/Loader/Symfony/XliffLoader.php b/Translation/Loader/Symfony/XliffLoader.php index a33af1a2..7cd12205 100644 --- a/Translation/Loader/Symfony/XliffLoader.php +++ b/Translation/Loader/Symfony/XliffLoader.php @@ -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; }