From: Michael Date: Fri, 26 Nov 2021 08:16:06 +0000 (+0000) Subject: Mixed parameter order X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0e3c8e3f5e499945d1920d43092422da78f03128;p=friendica.git Mixed parameter order --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 1c1bde54a0..03c8467a43 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -295,7 +295,7 @@ class BaseApi extends BaseModule } } - public static function getContactIDForSearchterm(string $screen_name = null, int $cid = null, string $profileurl = null, int $uid) + public static function getContactIDForSearchterm(string $screen_name = null, string $profileurl = null, int $cid = null, int $uid) { if (!empty($cid)) { return $cid; diff --git a/tests/legacy/ApiTest.php b/tests/legacy/ApiTest.php index 87ca84f1b6..497f3b8b8f 100644 --- a/tests/legacy/ApiTest.php +++ b/tests/legacy/ApiTest.php @@ -295,7 +295,6 @@ class ApiTest extends FixtureTest 'method' ) ); - self::assertTrue($API['api_path']['auth']); self::assertEquals('method', $API['api_path']['method']); self::assertTrue(is_callable($API['api_path']['func'])); }