Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 7e8f51b

Browse files
committed
set defined options by all configurations
1 parent 3958529 commit 7e8f51b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Libs/OptionsResolver.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,14 @@ public static function make(array $config = []): CurlyspoonOptionsResolver
1212
{
1313
$resolver = new static();
1414

15+
$resolver->setDefined(array_merge(
16+
$config['defaults'],
17+
$config['required'],
18+
array_keys($config['types']),
19+
array_keys($config['values']),
20+
array_keys($config['normalizers'])
21+
));
22+
1523
$resolver
1624
->loadConfigDefaults($config)
1725
->loadConfigRequired($config)

0 commit comments

Comments
 (0)