sforkowany z mirror/friendica
Merge pull request #7962 from MrPetovan/bug/fatal-errors
Add type-hint to debug null value fatal error2022.09-rc
commit
73c3e8a416
|
@ -383,7 +383,7 @@ class App
|
||||||
* @deprecated 2019.09 - Use BaseURL->remove() instead
|
* @deprecated 2019.09 - Use BaseURL->remove() instead
|
||||||
* @see BaseURL::remove()
|
* @see BaseURL::remove()
|
||||||
*/
|
*/
|
||||||
public function removeBaseURL($origURL)
|
public function removeBaseURL(string $origURL)
|
||||||
{
|
{
|
||||||
return $this->baseURL->remove($origURL);
|
return $this->baseURL->remove($origURL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,7 @@ class System extends BaseObject
|
||||||
* @return string The cleaned url
|
* @return string The cleaned url
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
public static function removedBaseUrl($orig_url)
|
public static function removedBaseUrl(string $orig_url)
|
||||||
{
|
{
|
||||||
return self::getApp()->removeBaseURL($orig_url);
|
return self::getApp()->removeBaseURL($orig_url);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue