1010
1111use NCU \Config \IUserConfig ;
1212use NCU \Config \Lexicon \ConfigLexiconEntry ;
13- use NCU \Config \Lexicon \ConfigLexiconPreset ;
13+ use NCU \Config \Lexicon \Preset ;
1414use NCU \Config \Lexicon \ConfigLexiconStrictness ;
1515use NCU \Config \Lexicon \IConfigLexicon ;
1616use NCU \Config \ValueType ;
@@ -27,9 +27,9 @@ public function getAppConfigs(): array {
2727 return [
2828 new ConfigLexiconEntry ('key1 ' , ValueType::STRING , 'abcde ' , 'test key ' , true , IAppConfig::FLAG_SENSITIVE ),
2929 new ConfigLexiconEntry ('key2 ' , ValueType::INT , 12345 , 'test key ' , false ),
30- new ConfigLexiconEntry ('key3 ' , ValueType::STRING , fn (ConfigLexiconPreset $ p ): string => match ($ p ) {
31- ConfigLexiconPreset ::FAMILY => 'family ' ,
32- ConfigLexiconPreset ::CLUB , ConfigLexiconPreset ::MEDIUM => 'club+medium ' ,
30+ new ConfigLexiconEntry ('key3 ' , ValueType::STRING , fn (Preset $ p ): string => match ($ p ) {
31+ Preset ::FAMILY => 'family ' ,
32+ Preset ::CLUB , Preset ::MEDIUM => 'club+medium ' ,
3333 default => 'none ' ,
3434 }, 'test key ' ),
3535 ];
@@ -39,9 +39,9 @@ public function getUserConfigs(): array {
3939 return [
4040 new ConfigLexiconEntry ('key1 ' , ValueType::STRING , 'abcde ' , 'test key ' , true , IUserConfig::FLAG_SENSITIVE ),
4141 new ConfigLexiconEntry ('key2 ' , ValueType::INT , 12345 , 'test key ' , false ),
42- new ConfigLexiconEntry ('key3 ' , ValueType::STRING , fn (ConfigLexiconPreset $ p ): string => match ($ p ) {
43- ConfigLexiconPreset ::FAMILY => 'family ' ,
44- ConfigLexiconPreset ::CLUB , ConfigLexiconPreset ::MEDIUM => 'club+medium ' ,
42+ new ConfigLexiconEntry ('key3 ' , ValueType::STRING , fn (Preset $ p ): string => match ($ p ) {
43+ Preset ::FAMILY => 'family ' ,
44+ Preset ::CLUB , Preset ::MEDIUM => 'club+medium ' ,
4545 default => 'none ' ,
4646 }, 'test key ' ),
4747 ];
0 commit comments