From fc09c285a6008f4f979ed1013cb50c9bce2f2e64 Mon Sep 17 00:00:00 2001 From: Thomas Calvet Date: Sat, 9 Feb 2019 11:17:15 +0100 Subject: [PATCH] [Form][MappingRule] Remove unnecessary cast --- .../Form/Extension/Validator/ViolationMapper/MappingRule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php index 590f7df2d8b5..cb9f3f953326 100644 --- a/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php +++ b/src/Symfony/Component/Form/Extension/Validator/ViolationMapper/MappingRule.php @@ -55,7 +55,7 @@ public function getOrigin() */ public function match($propertyPath) { - if ($propertyPath === (string) $this->propertyPath) { + if ($propertyPath === $this->propertyPath) { return $this->getTarget(); } }