minor #43903 Fix more generic types (derrabus)
minor #43903 Fix more generic types (derrabus)

This PR was merged into the 5.4 branch.

Discussion
----------

Fix more generic types

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | N/A
| License       | MIT
| Doc PR        | N/A

Some changes I wanted to push to #42471, but then it got merged already. 😇

Commits
-------

c54d61e9af Fix more generic types

symfony/property-info