* Adjust gitlab unit test

This commit is contained in:
zenggang
2024-01-11 09:41:47 +00:00
parent e50ff3f699
commit b3d41cc72a
2 changed files with 25 additions and 16 deletions
+4 -4
View File
@@ -337,13 +337,13 @@ class gitlabModel extends model
* Send an api post request.
*
* @param int|string $host gitlab server ID | gitlab host url.
* @param string $api
* @param array $data
* @param array $options
* @param string $api
* @param array|object $data
* @param array $options
* @access public
* @return object|array|null
*/
public function apiPost(int|string $host, string $api, array $data = array(), array $options = array()): object|array|null
public function apiPost(int|string $host, string $api, array|object $data = array(), array $options = array()): object|array|null
{
if(is_numeric($host)) $host = $this->getApiRoot($host);
if(strpos($host, 'http://') !== 0 and strpos($host, 'https://') !== 0) return false;