minor #11463 [Validator] prevent unnecessary calls inside ExecutionContext (Tobion)
minor #11463 [Validator] prevent unnecessary calls inside ExecutionContext (Tobion)

This PR was merged into the 2.5 branch.

Discussion
----------

[Validator] prevent unnecessary calls inside ExecutionContext

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

Small performance improvement by preventing calls to `PropertyPath::append($this->propertyPath, $subPath)` when not needed.

Commits
-------

d6d462a [Validator] do not call getter inside ExecutionContext to prevent unnecessary calls

bocharsky-bw/Validator,spolischook/Validator,symfony/Validator