mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
修复 PHP8.4 报错问题。
PHP 8.4: 隐式 nullable 参数声明弃用
This commit is contained in:
@@ -62,7 +62,7 @@ class Query
|
||||
* @param Connection $connection 数据库对象实例
|
||||
* @param Model $model 模型对象
|
||||
*/
|
||||
public function __construct(Connection $connection = null, $model = null)
|
||||
public function __construct(?Connection $connection = null, $model = null)
|
||||
{
|
||||
$this->connection = $connection ?: Db::connect([], true);
|
||||
$this->prefix = $this->connection->getConfig('prefix');
|
||||
|
||||
Reference in New Issue
Block a user