]> git.mxchange.org Git - friendica.git/commitdiff
Add type-hint to debug null value fatal error
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 16 Dec 2019 16:05:08 +0000 (11:05 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 16 Dec 2019 16:05:08 +0000 (11:05 -0500)
- Part of https://github.com/friendica/friendica/issues/7675#issuecomment-566076500

src/App.php
src/Core/System.php

index c6ed818dd1a8ec23f932a1ef4eb826e8c45f7117..cf53e956f0cd75610c1aef1827a31a4b49eaf48c 100644 (file)
@@ -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);
        }
index f367d28587a9452b265f41dc9a080e146de7e2a7..7aba0653e1afcd74dde753e3c80f92a8fecf28a2 100644 (file)
@@ -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);
        }