Skip to content

Commit 546d939

Browse files
committed
Merge branch '6.4' into 7.3
* 6.4: [OptionsResolver] setOptions callback should not return a value
2 parents 234e840 + 0c48ee8 commit 546d939

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
@@ -737,8 +737,11 @@ In same way, parent options can access to the nested options as normal arrays::
737737
// ...
738738
]);
739739
});
740+
740741
$resolver->setOptions('profiling', function (Options $options): void {
741-
return 'file' === $options['spool']['type'];
742+
if ('file' === $options['spool']['type']) {
743+
// ...
744+
}
742745
});
743746
}
744747
}

0 commit comments

Comments
 (0)