Mixed parameter order

This commit is contained in:
Michael 2021-11-26 08:16:06 +00:00
parent da9b5f32db
commit 0e3c8e3f5e
2 changed files with 1 additions and 2 deletions

View file

@ -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)) { if (!empty($cid)) {
return $cid; return $cid;

View file

@ -295,7 +295,6 @@ class ApiTest extends FixtureTest
'method' 'method'
) )
); );
self::assertTrue($API['api_path']['auth']);
self::assertEquals('method', $API['api_path']['method']); self::assertEquals('method', $API['api_path']['method']);
self::assertTrue(is_callable($API['api_path']['func'])); self::assertTrue(is_callable($API['api_path']['func']));
} }