From 0e3c8e3f5e499945d1920d43092422da78f03128 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 26 Nov 2021 08:16:06 +0000 Subject: [PATCH] Mixed parameter order --- src/Module/BaseApi.php | 2 +- tests/legacy/ApiTest.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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'])); }