Skip to content

Commit 9401362

Browse files
committed
refactor: use static closures and inline query parameter
1 parent d6c4375 commit 9401362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ai-bundle/config/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@
542542
->info('The ratio between semantic (vector) and full-text search (0.0 to 1.0). Default: 1.0 (100% semantic)')
543543
->defaultValue(1.0)
544544
->validate()
545-
->ifTrue(fn ($v) => $v < 0.0 || $v > 1.0)
545+
->ifTrue(static fn ($v) => $v < 0.0 || $v > 1.0)
546546
->thenInvalid('The semantic ratio must be between 0.0 and 1.0.')
547547
->end()
548548
->end()

0 commit comments

Comments
 (0)