You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/OptionsResolver/OptionsResolver.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -360,12 +360,12 @@ public function getDefinedOptions()
360
360
* Instead of passing the message, you may also pass a closure with the
361
361
* following signature:
362
362
*
363
-
* function (Options $options, $value) {
363
+
* function (Options $options, $value): string {
364
364
* // ...
365
365
* }
366
366
*
367
367
* The closure receives the value as argument and should return a string.
368
-
* Returns an empty string to ignore the option deprecation.
368
+
* Return an empty string to ignore the option deprecation.
369
369
*
370
370
* The closure is invoked when {@link resolve()} is called. The parameter
371
371
* passed to the closure is the value of the option after validating it
@@ -869,7 +869,7 @@ public function offsetGet($option)
869
869
$this->calling[$option] = true;
870
870
try {
871
871
if (!\is_string($deprecationMessage = $deprecationMessage($this, $value))) {
872
-
thrownewInvalidOptionsException(sprintf('Invalid type for deprecation message, expected string but got "%s", returns an empty string to ignore.', \gettype($deprecationMessage)));
872
+
thrownewInvalidOptionsException(sprintf('Invalid type for deprecation message, expected string but got "%s", return an empty string to ignore.', \gettype($deprecationMessage)));
0 commit comments