@@ -368,7 +368,7 @@ protected function _updateBatch(string $table, array $keys, array $values): stri
368368 $ sql .= 'WHERE ' . implode (
369369 ' AND ' ,
370370 array_map (
371- static function ($ key , $ value ) use ($ table , $ alias , $ that ) {
371+ static function ($ key , $ value ) use ($ table , $ alias , $ that ): string | RawSql {
372372 if ($ value instanceof RawSql && is_string ($ key )) {
373373 return $ table . '. ' . $ key . ' = ' . $ value ;
374374 }
@@ -463,7 +463,7 @@ protected function _upsertBatch(string $table, array $keys, array $values): stri
463463 $ constraints = $ this ->QBOptions ['constraints ' ] ?? [];
464464
465465 if (empty ($ constraints )) {
466- $ allIndexes = array_filter ($ this ->db ->getIndexData ($ table ), static function ($ index ) use ($ fieldNames ) {
466+ $ allIndexes = array_filter ($ this ->db ->getIndexData ($ table ), static function ($ index ) use ($ fieldNames ): bool {
467467 $ hasAllFields = count (array_intersect ($ index ->fields , $ fieldNames )) === count ($ index ->fields );
468468
469469 return ($ index ->type === 'UNIQUE ' || $ index ->type === 'PRIMARY ' ) && $ hasAllFields ;
@@ -575,7 +575,7 @@ protected function _deleteBatch(string $table, array $keys, array $values): stri
575575 $ sql .= 'WHERE ' . implode (
576576 ' AND ' ,
577577 array_map (
578- static function ($ key , $ value ) use ($ table , $ alias , $ that ) {
578+ static function ($ key , $ value ) use ($ table , $ alias , $ that ): RawSql | string {
579579 if ($ value instanceof RawSql) {
580580 return $ value ;
581581 }
0 commit comments