Skip to content

Commit 2c162b6

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: 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 define constant only if it wasn't defined before Fix incorrect spanish translation Fixed typos Conflicts: composer.json src/Symfony/Bridge/Twig/TwigEngine.php src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php src/Symfony/Bundle/FrameworkBundle/Templating/Loader/FilesystemLoader.php src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Component/Console/Descriptor/MarkdownDescriptor.php src/Symfony/Component/Console/Helper/TableHelper.php src/Symfony/Component/Console/Tests/Helper/HelperSetTest.php src/Symfony/Component/Debug/ErrorHandler.php src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php src/Symfony/Component/Finder/Tests/Iterator/RecursiveDirectoryIteratorTest.php src/Symfony/Component/Form/Tests/Extension/Core/DataMapper/PropertyPathMapperTest.php src/Symfony/Component/HttpFoundation/Response.php src/Symfony/Component/HttpFoundation/StreamedResponse.php src/Symfony/Component/HttpKernel/Controller/ControllerResolver.php src/Symfony/Component/HttpKernel/Controller/ControllerResolverInterface.php src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php src/Symfony/Component/HttpKernel/Fragment/RoutableFragmentRenderer.php src/Symfony/Component/HttpKernel/Tests/DataCollector/RequestDataCollectorTest.php src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php src/Symfony/Component/Process/Process.php src/Symfony/Component/Process/Tests/AbstractProcessTest.php src/Symfony/Component/PropertyAccess/PropertyAccessorBuilder.php src/Symfony/Component/Routing/Tests/Fixtures/validpattern.php src/Symfony/Component/Security/Http/RememberMe/TokenBasedRememberMeServices.php src/Symfony/Component/Security/composer.json src/Symfony/Component/Serializer/Encoder/XmlEncoder.php src/Symfony/Component/Serializer/Normalizer/GetSetMethodNormalizer.php src/Symfony/Component/Stopwatch/StopwatchEvent.php src/Symfony/Component/Stopwatch/StopwatchPeriod.php src/Symfony/Component/Templating/PhpEngine.php src/Symfony/Component/Templating/TemplateReference.php src/Symfony/Component/Templating/TemplateReferenceInterface.php src/Symfony/Component/Translation/TranslatorInterface.php src/Symfony/Component/Validator/ConstraintViolation.php src/Symfony/Component/Validator/ExecutionContextInterface.php src/Symfony/Component/Validator/Mapping/ClassMetadata.php src/Symfony/Component/Validator/MetadataFactoryInterface.php
2 parents 0bf54ab + 21aba61 commit 2c162b6

15 files changed

+51
-50
lines changed

Constraint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public function validatedBy()
209209
* This method should return one or more of the constants
210210
* Constraint::CLASS_CONSTRAINT and Constraint::PROPERTY_CONSTRAINT.
211211
*
212-
* @return string|array One or more constant values
212+
* @return string|array One or more constant values
213213
*
214214
* @api
215215
*/

ConstraintViolation.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,19 +61,19 @@ class ConstraintViolation implements ConstraintViolationInterface
6161
/**
6262
* Creates a new constraint violation.
6363
*
64-
* @param string $message The violation message
65-
* @param string $messageTemplate The raw violation message
66-
* @param array $parameters The parameters to substitute in the
67-
* raw violation message
68-
* @param mixed $root The value originally passed to the
69-
* validator
70-
* @param string $propertyPath The property path from the root
71-
* value to the invalid value
72-
* @param mixed $invalidValue The invalid value that caused this
73-
* violation
74-
* @param int|null $plural The number for determining the plural
75-
* form when translating the message
76-
* @param mixed $code The error code of the violation
64+
* @param string $message The violation message
65+
* @param string $messageTemplate The raw violation message
66+
* @param array $parameters The parameters to substitute in the
67+
* raw violation message
68+
* @param mixed $root The value originally passed to the
69+
* validator
70+
* @param string $propertyPath The property path from the root
71+
* value to the invalid value
72+
* @param mixed $invalidValue The invalid value that caused this
73+
* violation
74+
* @param int|null $plural The number for determining the plural
75+
* form when translating the message
76+
* @param mixed $code The error code of the violation
7777
*/
7878
public function __construct($message, $messageTemplate, array $parameters, $root, $propertyPath, $invalidValue, $plural = null, $code = null)
7979
{

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
@@ -50,10 +50,10 @@ public function validate($value, Constraint $constraint)
5050
/**
5151
* Compares the two given values to find if their relationship is valid
5252
*
53-
* @param mixed $value1 The first value to compare
54-
* @param mixed $value2 The second value to compare
53+
* @param mixed $value1 The first value to compare
54+
* @param mixed $value2 The second value to compare
5555
*
56-
* @return bool true if the relationship is valid, false otherwise
56+
* @return bool true if the relationship is valid, false otherwise
5757
*/
5858
abstract protected function compareValues($value1, $value2);
5959
}

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
{
@@ -469,7 +469,7 @@ public function getReflectionClass()
469469
/**
470470
* Sets whether a group sequence provider should be used.
471471
*
472-
* @param bool $active
472+
* @param bool $active
473473
*
474474
* @throws GroupDefinitionException
475475
*/

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
@@ -97,7 +97,8 @@ public function testInvalidComparisonToValue($dirtyValue, $dirtyValueAsString, $
9797
abstract public function provideInvalidComparisons();
9898

9999
/**
100-
* @param array $options Options for the constraint
100+
* @param array $options Options for the constraint
101+
*
101102
* @return Constraint
102103
*/
103104
abstract protected function createConstraint(array $options);

Tests/Constraints/AbstractConstraintValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ protected function createContext()
119119
}
120120

121121
/**
122-
* @param $message
122+
* @param mixed $message
123123
* @param array $parameters
124124
* @param string $propertyPath
125125
* @param string $invalidValue
@@ -308,7 +308,7 @@ protected function assertNoViolation()
308308
}
309309

310310
/**
311-
* @param $message
311+
* @param mixed $message
312312
* @param array $parameters
313313
* @param string $propertyPath
314314
* @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)