Skip to content

Commit 4583e03

Browse files
committed
Merge branch '2.5' into 2.6
* 2.5: Configure firewall's kernel exception listener with configured entry point or a default entry point PSR-2 fixes [DependencyInjection] make paths relative to __DIR__ in the generated container Fixed the syntax of a composer.json file Fixed the symfony/config version constraint Tweaked the password-compat version constraint Docblock fixes Remove dialog usage define constant only if it wasn't defined before Fix incorrect spanish translation Fixed typos Conflicts: src/Symfony/Bundle/TwigBundle/Controller/ExceptionController.php src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php src/Symfony/Component/OptionsResolver/Options.php src/Symfony/Component/OptionsResolver/OptionsResolverInterface.php src/Symfony/Component/Process/ProcessPipes.php src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php src/Symfony/Component/Serializer/Normalizer/DenormalizableInterface.php src/Symfony/Component/Validator/ConstraintViolation.php src/Symfony/Component/Yaml/Inline.php src/Symfony/Component/Yaml/Parser.php
2 parents cbf6575 + 2c162b6 commit 4583e03

14 files changed

+38
-37
lines changed

Constraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public function validatedBy()
286286
* This method should return one or more of the constants
287287
* Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
288288
*
289-
* @return string|array One or more constant values
289+
* @return string|array One or more constant values
290290
*
291291
* @api
292292
*/

ConstraintViolationInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function getMessageParameters();
8585
* This method returns the value of the parameter for choosing the right
8686
* pluralization form (in this case "choices").
8787
*
88-
* @return int|null The number to use to pluralize of the message.
88+
* @return int|null The number to use to pluralize of the message.
8989
*/
9090
public function getMessagePluralization();
9191

ConstraintViolationListInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function addAll(ConstraintViolationListInterface $otherList);
4141
/**
4242
* Returns the violation at a given offset.
4343
*
44-
* @param int $offset The offset of the violation.
44+
* @param int $offset The offset of the violation.
4545
*
4646
* @return ConstraintViolationInterface The violation.
4747
*
@@ -54,9 +54,9 @@ public function get($offset);
5454
/**
5555
* Returns whether the given offset exists.
5656
*
57-
* @param int $offset The violation offset.
57+
* @param int $offset The violation offset.
5858
*
59-
* @return bool Whether the offset exists.
59+
* @return bool Whether the offset exists.
6060
*
6161
* @api
6262
*/
@@ -75,7 +75,7 @@ public function set($offset, ConstraintViolationInterface $violation);
7575
/**
7676
* Removes a violation at a given offset.
7777
*
78-
* @param int $offset The offset to remove.
78+
* @param int $offset The offset to remove.
7979
*
8080
* @api
8181
*/

Constraints/AbstractComparisonValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ public function validate($value, Constraint $constraint)
6565
/**
6666
* Compares the two given values to find if their relationship is valid
6767
*
68-
* @param mixed $value1 The first value to compare
69-
* @param mixed $value2 The second value to compare
68+
* @param mixed $value1 The first value to compare
69+
* @param mixed $value2 The second value to compare
7070
*
71-
* @return bool true if the relationship is valid, false otherwise
71+
* @return bool true if the relationship is valid, false otherwise
7272
*/
7373
abstract protected function compareValues($value1, $value2);
7474
}

Constraints/CardSchemeValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ class CardSchemeValidator extends ConstraintValidator
101101
/**
102102
* Validates a creditcard belongs to a specified scheme.
103103
*
104-
* @param mixed $value
104+
* @param mixed $value
105105
* @param Constraint $constraint
106106
*/
107107
public function validate($value, Constraint $constraint)

DefaultTranslator.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ public function trans($id, array $parameters = array(), $domain = null, $locale
117117
*
118118
* // -> These are 3 donkeys.
119119
*
120-
* @param string $id The message id
121-
* @param int $number The number to use to find the index of the message
122-
* @param array $parameters An array of parameters for the message
123-
* @param string $domain Ignored
124-
* @param string $locale Ignored
120+
* @param string $id The message id
121+
* @param int $number The number to use to find the index of the message
122+
* @param array $parameters An array of parameters for the message
123+
* @param string $domain Ignored
124+
* @param string $locale Ignored
125125
*
126126
* @return string The translated string
127127
*

ExecutionContextInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ public function addViolation($message, array $params = array(), $invalidValue =
109109
* Adds a violation at the validation graph node with the given property
110110
* path relative to the current property path.
111111
*
112-
* @param string $subPath The relative property path for the violation
113-
* @param string $message The error message
114-
* @param array $parameters The parameters substituted in the error message
115-
* @param mixed $invalidValue The invalid, validated value
116-
* @param int|null $plural The number to use to pluralize of the message
117-
* @param int|null $code The violation code
112+
* @param string $subPath The relative property path for the violation
113+
* @param string $message The error message
114+
* @param array $parameters The parameters substituted in the error message
115+
* @param mixed $invalidValue The invalid, validated value
116+
* @param int|null $plural The number to use to pluralize of the message
117+
* @param int|null $code The violation code
118118
*
119119
* @api
120120
*

Mapping/ClassMetadata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ public function getClassName()
207207
* will validate the group sequence. The constraints assigned to "Default"
208208
* can still be validated by validating the class in "<ClassName>".
209209
*
210-
* @return string The name of the default group
210+
* @return string The name of the default group
211211
*/
212212
public function getDefaultGroup()
213213
{
@@ -499,7 +499,7 @@ public function getReflectionClass()
499499
/**
500500
* Sets whether a group sequence provider should be used.
501501
*
502-
* @param bool $active
502+
* @param bool $active
503503
*
504504
* @throws GroupDefinitionException
505505
*/

Mapping/Loader/AbstractLoader.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ protected function addNamespaceAlias($alias, $namespace)
3636
/**
3737
* Creates a new constraint instance for the given constraint name.
3838
*
39-
* @param string $name The constraint name. Either a constraint relative
40-
* to the default constraint namespace, or a fully
41-
* qualified class name
42-
* @param mixed $options The constraint options
39+
* @param string $name The constraint name. Either a constraint relative
40+
* to the default constraint namespace, or a fully
41+
* qualified class name
42+
* @param mixed $options The constraint options
4343
*
4444
* @return Constraint
4545
*

Tests/Constraints/AbstractComparisonValidatorTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ public function provideAllInvalidComparisons()
163163
abstract public function provideInvalidComparisons();
164164

165165
/**
166-
* @param array $options Options for the constraint
166+
* @param array $options Options for the constraint
167+
*
167168
* @return Constraint
168169
*/
169170
abstract protected function createConstraint(array $options);

Tests/Constraints/AbstractConstraintValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ protected function createContext()
160160
}
161161

162162
/**
163-
* @param $message
163+
* @param mixed $message
164164
* @param array $parameters
165165
* @param string $propertyPath
166166
* @param string $invalidValue
@@ -350,7 +350,7 @@ protected function assertNoViolation()
350350
}
351351

352352
/**
353-
* @param $message
353+
* @param mixed $message
354354
* @param array $parameters
355355
* @param string $propertyPath
356356
* @param string $invalidValue

Tests/Constraints/ChoiceValidatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function testValidChoiceCallbackClosure()
9595
{
9696
$constraint = new Choice(array('callback' => function () {
9797
return array('foo', 'bar');
98-
},));
98+
}, ));
9999

100100
$this->validator->validate('bar', $constraint);
101101

Tests/Mapping/ClassMetadataFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function testReadMetadataFromCache()
105105
->method('read')
106106
->will($this->returnValue($metadata));
107107

108-
$this->assertEquals($metadata,$factory->getMetadataFor(self::PARENTCLASS));
108+
$this->assertEquals($metadata, $factory->getMetadataFor(self::PARENTCLASS));
109109
}
110110
}
111111

ValidationVisitorInterface.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ interface ValidationVisitorInterface
5656
* does not find metadata for the given value, it will fail with an
5757
* exception.
5858
*
59-
* @param mixed $value The value to validate.
60-
* @param string $group The validation group to validate.
61-
* @param string $propertyPath The current property path in the validation graph.
62-
* @param bool $traverse Whether to traverse the value if it is traversable.
63-
* @param bool $deep Whether to traverse nested traversable values recursively.
59+
* @param mixed $value The value to validate.
60+
* @param string $group The validation group to validate.
61+
* @param string $propertyPath The current property path in the validation graph.
62+
* @param bool $traverse Whether to traverse the value if it is traversable.
63+
* @param bool $deep Whether to traverse nested traversable values recursively.
6464
*
6565
* @throws Exception\NoSuchMetadataException If no metadata can be found for
6666
* the given value.

0 commit comments

Comments
 (0)