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:
@@ -406,7 +406,7 @@ abstract class Connection
|
||||
* @throws PDOException
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function execute($sql, $bind = [], Query $query = null)
|
||||
public function execute($sql, $bind = [], ?Query $query = null)
|
||||
{
|
||||
$this->initConnect(true);
|
||||
if (!$this->linkID) {
|
||||
@@ -738,7 +738,7 @@ abstract class Connection
|
||||
* @param array $sqlArray SQL批处理指令
|
||||
* @return boolean
|
||||
*/
|
||||
public function batchQuery($sqlArray = [], $bind = [], Query $query = null)
|
||||
public function batchQuery($sqlArray = [], $bind = [], ?Query $query = null)
|
||||
{
|
||||
if (!is_array($sqlArray)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user