Skip to content

Commit 0597200

Browse files
committed
chore: use arrow function in applicationKey validation
1 parent c1073f5 commit 0597200

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Config.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ private function resolveOptions(array $options): array
4343
$resolver->setAllowedTypes('cache', ['null', CacheItemPoolInterface::class]);
4444
$resolver->setAllowedTypes('logger', ['null', LoggerInterface::class]);
4545

46-
$resolver->setAllowedValues('applicationKey', function($value) {
47-
return !empty($value);
48-
});
46+
$resolver->setAllowedValues('applicationKey', fn($value) => !empty($value));
4947
$resolver->setAllowedValues('unitSystem', UnitSystem::getList());
5048
$resolver->setAllowedValues('language', Language::getList());
5149

0 commit comments

Comments
 (0)