This commit is contained in:
2023-12-13 16:22:25 +08:00
parent c84d9f8328
commit 3ab08c9ca7
+1 -1
View File
@@ -235,7 +235,7 @@ abstract class Model extends Component implements ModelInterface, ArrayAccess, \
* @return Model|null
* @throws
*/
public static function findOne(int|string|array $param, $db = NULL): ?static
public static function findOne(int|string|array $param, $db = NULL): static|null|bool
{
$model = static::instance();