Skip to content

Commit 8d6956a

Browse files
claude[bot]claude
authored andcommitted
refactor(sqlite): type closure params over cast in fulltext lookups
Match the (string $a) convention used elsewhere in the file (lines 745, 762) so the redundant `(string)` cast can drop. Behaviour is unchanged. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 59c363c commit 8d6956a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Database/Adapter/SQLite.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,7 +1043,7 @@ protected function resolveFulltextTableById(string $collection, string $id, arra
10431043
: ($index['attributes'] ?? []);
10441044

10451045
$internal = \array_map(
1046-
fn ($a) => $this->getInternalKeyForAttribute((string) $a),
1046+
fn (string $a) => $this->getInternalKeyForAttribute($a),
10471047
(array) $attributes
10481048
);
10491049
$candidate = $this->getFulltextTableName($collection, $internal);
@@ -2906,7 +2906,7 @@ protected function getFulltextSchemaIndexes(string $collection): array
29062906
: ($index['attributes'] ?? []);
29072907

29082908
$internal = \array_map(
2909-
fn ($a) => $this->getInternalKeyForAttribute((string) $a),
2909+
fn (string $a) => $this->getInternalKeyForAttribute($a),
29102910
(array) $attributes
29112911
);
29122912
$hashToId[$this->getFulltextTableName($collection, $internal)] = $this->filter((string) $indexId);

0 commit comments

Comments
 (0)