Skip to content

Commit 3f83dbb

Browse files
committed
Merge branch '7.4' into 8.0
* 7.4: [OptionsResolver] setOptions callback should not return a value
2 parents bc92774 + 7b04c5b commit 3f83dbb

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
@@ -723,8 +723,11 @@ In same way, parent options can access to the nested options as normal arrays::
723723
// ...
724724
]);
725725
});
726+
726727
$resolver->setOptions('profiling', function (Options $options): void {
727-
return 'file' === $options['spool']['type'];
728+
if ('file' === $options['spool']['type']) {
729+
// ...
730+
}
728731
});
729732
}
730733
}

0 commit comments

Comments
 (0)