Skip to content

Commit bc69d5c

Browse files
committed
修复 Rector 测试
1 parent d09f243 commit bc69d5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Db.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ public static function debugSql(string $sql, array $bindValues): string
241241

242242
foreach ($bindValues as $value)
243243
{
244-
$sql = preg_replace('/\?/', var_export($value, true), $sql, 1);
244+
$sql = preg_replace('/\?/', var_export($value, true), (string) $sql, 1);
245245
}
246246

247-
return str_replace('__mask__', '??', $sql);
247+
return str_replace('__mask__', '??', (string) $sql);
248248
}
249249
else
250250
{

src/Query/Where/Where.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function toStringWithoutLogic(IQuery $query): string
103103
$thisValues = &$this->value;
104104
$operation = $this->operation;
105105
$result = $query->fieldQuote($this->fieldName) . ' ' . $operation . ' ';
106-
switch (strtolower($operation))
106+
switch (strtolower((string) $operation))
107107
{
108108
case 'between':
109109
case 'not between':

0 commit comments

Comments
 (0)