Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 95454f5

Browse files
committed
[OptionsResolver] Fixed typos
1 parent 256b708 commit 95454f5

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

src/Symfony/Component/OptionsResolver/OptionsResolver.php

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ public function __construct()
5757
/**
5858
* Sets default option values.
5959
*
60-
* @param array $options A list of option names as keys and default values
61-
* as values. The option values may be closures
62-
* of the following signatures:
60+
* @param array $defaultValues A list of option names as keys and default values
61+
* as values. The option values may be closures
62+
* of the following signatures:
6363
*
64-
* - function (Options $options)
65-
* - function (Options $options, $previousValue)
64+
* - function (Options $options)
65+
* - function (Options $options, $previousValue)
6666
*/
6767
public function setDefaults(array $defaultValues)
6868
{
@@ -80,11 +80,11 @@ public function setDefaults(array $defaultValues)
8080
* performance if the previous default value is calculated by an expensive
8181
* closure.
8282
*
83-
* @param array $options A list of option names as keys and default values
84-
* as values. The option values may be closures
85-
* of the following signature:
83+
* @param array $defaultValues A list of option names as keys and default values
84+
* as values. The option values may be closures
85+
* of the following signature:
8686
*
87-
* - function (Options $options)
87+
* - function (Options $options)
8888
*/
8989
public function replaceDefaults(array $defaultValues)
9090
{
@@ -214,10 +214,11 @@ public function resolve(array $options)
214214
* Validates that the given option names exist and throws an exception
215215
* otherwise.
216216
*
217-
* @param array $optionNames A list of option names.
217+
* @param array $optionNames A list of option names.
218218
*
219-
* @throws InvalidOptionsException If any of the options has not been
220-
* defined.
219+
* @throws InvalidOptionsException If any of the options has not been
220+
* defined.
221+
* @throws MissingOptionsException If a required option is missing.
221222
*/
222223
private function validateOptionNames(array $optionNames)
223224
{

src/Symfony/Component/OptionsResolver/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ possible, and may only be one of "male" and "female".
2222
public function __construct(array $options = array())
2323
{
2424
$resolver = new OptionsResolver();
25-
$this->configureOptions($resolver);
25+
$this->configure($resolver);
2626

2727
$this->options = $resolver->resolve($options);
2828
}
@@ -53,7 +53,7 @@ possible, and may only be one of "male" and "female".
5353

5454
We can now easily instantiate a Person object:
5555

56-
// 'gender' is implicitely set to 'female'
56+
// 'gender' is implicitly set to 'female'
5757
$person = new Person(array(
5858
'firstName' => 'Jane',
5959
'lastName' => 'Doe',

src/Symfony/Component/OptionsResolver/Tests/OptionResolverTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616

1717
class OptionsResolverTest extends \PHPUnit_Framework_TestCase
1818
{
19-
private $options;
19+
/**
20+
* @var OptionsResolver
21+
*/
22+
private $resolver;
2023

2124
protected function setUp()
2225
{

0 commit comments

Comments
 (0)