Skip to content

Commit c7051f9

Browse files
committed
[OptionsResolver] setOptions callback should not return a value
1 parent 99f9eee commit c7051f9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/options_resolver.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,8 +719,11 @@ In same way, parent options can access to the nested options as normal arrays::
719719
// ...
720720
]);
721721
});
722+
722723
$resolver->setDefault('profiling', function (Options $options): void {
723-
return 'file' === $options['spool']['type'];
724+
if ('file' === $options['spool']['type']) {
725+
// ...
726+
}
724727
});
725728
}
726729
}

0 commit comments

Comments
 (0)