Skip to content

Commit 1ce7483

Browse files
committed
Fix code examples in PHPDoc
1 parent b2cd147 commit 1ce7483

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

OptionsResolver.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,11 +360,9 @@ public function getDefinedOptions()
360360
*
361361
* The normalizer should be a closure with the following signature:
362362
*
363-
* ```php
364-
* function (Options $options, $value) {
365-
* // ...
366-
* }
367-
* ```
363+
* function (Options $options, $value) {
364+
* // ...
365+
* }
368366
*
369367
* The closure is invoked when {@link resolve()} is called. The closure
370368
* has access to the resolved values of other options through the passed

OptionsResolverInterface.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ interface OptionsResolverInterface
2929
* evaluate the option value lazily. These closures must have one
3030
* of the following signatures:
3131
*
32-
* <code>
33-
* function (Options $options)
34-
* function (Options $options, $value)
35-
* </code>
32+
* function (Options $options)
33+
* function (Options $options, $value)
3634
*
3735
* The second parameter passed to the closure is the previously
3836
* set default value, in case you are overwriting an existing
@@ -154,9 +152,7 @@ public function addAllowedTypes($allowedTypes);
154152
*
155153
* The normalizers should be closures with the following signature:
156154
*
157-
* <code>
158-
* function (Options $options, $value)
159-
* </code>
155+
* function (Options $options, $value)
160156
*
161157
* The second parameter passed to the closure is the value of
162158
* the option.

0 commit comments

Comments
 (0)