* Adjust return type for instance.

This commit is contained in:
caoyanyi
2023-12-28 19:19:25 +08:00
parent 65adc4d79a
commit 9e29065585
+2 -2
View File
@@ -54,9 +54,9 @@ class instanceModel extends model
*
* @param string $url
* @access public
* @return object
* @return object|false
*/
public function getByUrl(string $url): object
public function getByUrl(string $url): object|false
{
$url = str_replace(array('https://', 'http://'), '', trim($url));
return $this->dao->select('id')->from(TABLE_INSTANCE)->where('domain')->eq($url)->fetch();