From 77e00f11a7bd53ade5fccd90e087c2d2e06cb8b1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 16 Dec 2019 11:05:08 -0500 Subject: [PATCH] Add type-hint to debug null value fatal error - Part of https://github.com/friendica/friendica/issues/7675#issuecomment-566076500 --- src/App.php | 2 +- src/Core/System.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.39.5