8000 Merge branch '4.3' into 4.4 · symfony/symfony@2984ab7 · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 2984ab7

Browse files
Merge branch '4.3' into 4.4
* 4.3: Do not extend the new SF 4.3 ControllerEvent so we can make it final Backported return type violation bugfixes. [FrameworkBundle] Fix BrowserKit assertions to make them compatible with Panther
2 parents c9c3d66 + dd153d8 commit 2984ab7

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

src/Symfony/Component/Form/Tests/Extension/Validator/EventListener/ValidationListenerTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use Symfony\Component\Form\FormFactoryInterface;
2727
use Symfony\Component\Validator\ConstraintViolation;
2828
use Symfony\Component\Validator\ConstraintViolationInterface;
29+
use Symfony\Component\Validator\ConstraintViolationList;
2930
use Symfony\Component\Validator\Context\ExecutionContextInterface;
3031
use Symfony\Component\Validator\Validation;
3132
use Symfony\Component\Validator\Validator\ValidatorInterface;
@@ -166,7 +167,7 @@ public function hasMetadataFor($value)
166167

167168
public function validate($value, $constraints = null, $groups = null)
168169
{
169-
return [$this->violation];
170+
return new ConstraintViolationList([$this->violation]);
170171
}
171172

172173
public function validateProperty($object, $propertyName, $groups = null)

src/Symfony/Component/Form/Tests/Fixtures/FooType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ class FooType extends AbstractType
1717
{
1818
public function getParent()
1919
{
20+
return null;
2021
}
2122
}

src/Symfony/Component/HttpKernel/Event/FilterControllerArgumentsEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
/**
1818
* @deprecated since Symfony 4.3, use ControllerArgumentsEvent instead
1919
*/
20-
class FilterControllerArgumentsEvent extends ControllerEvent
20+
class FilterControllerArgumentsEvent extends FilterControllerEvent
2121
{
2222
private $arguments;
2323

src/Symfony/Component/Mime/composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424
"egulias/email-validator": "^2.0",
2525
"symfony/dependency-injection": "^3.4|^4.1|^5.0"
2626
},
27+
"conflict": {
28+
"symfony/mailer": "<4.4"
29+
},
2730
"autoload": {
2831
"psr-4": { "Symfony\\Component\\Mime\\": "" },
2932
"exclude-from-classmap": [

src/Symfony/Component/Security/Core/Encoder/EncoderAwareInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface EncoderAwareInterface
2222
* If the method returns null, the standard way to retrieve the encoder
2323
* will be used instead.
2424
*
25-
* @return string
25+
* @return string|null
2626
*/
2727
public function getEncoderName();
2828
}

src/Symfony/Component/Security/Core/User/User.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public function getPassword()
7171
*/
7272
public function getSalt()
7373
{
74+
return null;
7475
}
7576

7677
/**

0 commit comments

Comments
 (0)
0