diff --git a/common/oatbox/filesystem/File.php b/common/oatbox/filesystem/File.php index e7bc64cf3..d2bf57b39 100644 --- a/common/oatbox/filesystem/File.php +++ b/common/oatbox/filesystem/File.php @@ -104,8 +104,10 @@ public function write($mixed, $mimeType = null) } $this->getFileSystem()->writeStream($this->getPrefix(), $resource, $config); } else { - throw new \InvalidArgumentException('Value to be written has to be: string, resource or StreamInterface, ' . - '"' . gettype($mixed) . '" given.'); + throw new \InvalidArgumentException(sprintf( + 'Value to be written has to be: string, resource or StreamInterface, "%s" given.', + gettype($mixed) + )); } } catch (FilesystemException $e) { return false;