minor #30064 [Form][MappingRule] Remove unnecessary cast (fancyweb)

This PR was merged into the 3.4 branch.

Discussion
----------

[Form][MappingRule] Remove unnecessary cast

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

Commits
-------

fc09c285a6 [Form][MappingRule] Remove unnecessary cast
This commit is contained in:
Christian Flothmann 2019-02-11 12:05:01 +01:00
commit ace651e255

View File

@ -55,7 +55,7 @@ class MappingRule
*/
public function match($propertyPath)
{
if ($propertyPath === (string) $this->propertyPath) {
if ($propertyPath === $this->propertyPath) {
return $this->getTarget();
}
}