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:
commit
ace651e255
@ -55,7 +55,7 @@ class MappingRule
|
||||
*/
|
||||
public function match($propertyPath)
|
||||
{
|
||||
if ($propertyPath === (string) $this->propertyPath) {
|
||||
if ($propertyPath === $this->propertyPath) {
|
||||
return $this->getTarget();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user