Skip to content

Commit 0c48ee8

Browse files
committed
minor #21608 [OptionsResolver] setOptions callback should not return a value (javiereguiluz)
This PR was merged into the 6.4 branch. Discussion ---------- [OptionsResolver] setOptions callback should not return a value Fixes #21210. Commits ------- c7051f9 [OptionsResolver] setOptions callback should not return a value
2 parents 99f9eee + c7051f9 commit 0c48ee8

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)