From: Hypolite Petovan Date: Mon, 16 Dec 2019 16:05:08 +0000 (-0500) Subject: Add type-hint to debug null value fatal error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=77e00f11a7bd53ade5fccd90e087c2d2e06cb8b1;p=friendica.git Add type-hint to debug null value fatal error - Part of https://github.com/friendica/friendica/issues/7675#issuecomment-566076500 --- diff --git a/src/App.php b/src/App.php index c6ed818dd1..cf53e956f0 100644 --- a/src/App.php +++ b/src/App.php @@ -383,7 +383,7 @@ class App * @deprecated 2019.09 - Use BaseURL->remove() instead * @see BaseURL::remove() */ - public function removeBaseURL($origURL) + public function removeBaseURL(string $origURL) { return $this->baseURL->remove($origURL); } diff --git a/src/Core/System.php b/src/Core/System.php index f367d28587..7aba0653e1 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -41,7 +41,7 @@ class System extends BaseObject * @return string The cleaned url * @throws \Exception */ - public static function removedBaseUrl($orig_url) + public static function removedBaseUrl(string $orig_url) { return self::getApp()->removeBaseURL($orig_url); }