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
This commit is contained in:
Nicolas Grekas 2019-08-21 17:03:51 +02:00
commit 2984ab7e4e
6 changed files with 9 additions and 3 deletions

View File

@ -26,6 +26,7 @@ use Symfony\Component\Form\FormFactoryBuilder;
use Symfony\Component\Form\FormFactoryInterface;
use Symfony\Component\Validator\ConstraintViolation;
use Symfony\Component\Validator\ConstraintViolationInterface;
use Symfony\Component\Validator\ConstraintViolationList;
use Symfony\Component\Validator\Context\ExecutionContextInterface;
use Symfony\Component\Validator\Validation;
use Symfony\Component\Validator\Validator\ValidatorInterface;
@ -166,7 +167,7 @@ class DummyValidator implements ValidatorInterface
public function validate($value, $constraints = null, $groups = null)
{
return [$this->violation];
return new ConstraintViolationList([$this->violation]);
}
public function validateProperty($object, $propertyName, $groups = null)

View File

@ -17,5 +17,6 @@ class FooType extends AbstractType
{
public function getParent()
{
return null;
}
}

View File

@ -17,7 +17,7 @@ use Symfony\Component\HttpKernel\HttpKernelInterface;
/**
* @deprecated since Symfony 4.3, use ControllerArgumentsEvent instead
*/
class FilterControllerArgumentsEvent extends ControllerEvent
class FilterControllerArgumentsEvent extends FilterControllerEvent
{
private $arguments;

View File

@ -24,6 +24,9 @@
"egulias/email-validator": "^2.0",
"symfony/dependency-injection": "^3.4|^4.1|^5.0"
},
"conflict": {
"symfony/mailer": "<4.4"
},
"autoload": {
"psr-4": { "Symfony\\Component\\Mime\\": "" },
"exclude-from-classmap": [

View File

@ -22,7 +22,7 @@ interface EncoderAwareInterface
* If the method returns null, the standard way to retrieve the encoder
* will be used instead.
*
* @return string
* @return string|null
*/
public function getEncoderName();
}

View File

@ -71,6 +71,7 @@ final class User implements UserInterface, EquatableInterface, AdvancedUserInter
*/
public function getSalt()
{
return null;
}
/**