From e5d37591bf8ce3469b787c68e9248e6413b88608 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 20 Nov 2017 12:16:23 +0100 Subject: [PATCH] Fix types --- System/File/Ftp/File.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/System/File/Ftp/File.php b/System/File/Ftp/File.php index cdb6ff3f1..cc391df4a 100644 --- a/System/File/Ftp/File.php +++ b/System/File/Ftp/File.php @@ -102,7 +102,7 @@ class File extends FileAbstract implements FileInterface /** * {@inheritdoc} */ - public static function get(string $path) : /* ? */string + public static function get(string $path) : string { $temp = fopen('php://temp', 'r+'); $http = new Http($path); @@ -116,7 +116,7 @@ class File extends FileAbstract implements FileInterface fclose($temp); - return $content ?? null; + return $content; } /** @@ -227,7 +227,7 @@ class File extends FileAbstract implements FileInterface fclose($con); - return $owner; + return (int) $owner; } /**