Skip to content

Commit 5621f74

Browse files
committed
Merge branch '8.0' into 8.1
* 8.0: [OptionsResolver] setOptions callback should not return a value
2 parents dca694c + 3f83dbb commit 5621f74

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)