Skip to content

Commit 7b04c5b

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: [OptionsResolver] setOptions callback should not return a value
2 parents 3497411 + 546d939 commit 7b04c5b

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)