minor #40356 [Validator] Fix return types (derrabus)
minor #40356 [Validator] Fix return types (derrabus)

This PR was merged into the 4.4 branch.

Discussion
----------

[Validator] Fix return types

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

Commits
-------

e67ef5bbff [Validator] Fix return types

paradajozsef/symfony,zerkms/symfony,paradajozsef/symfony,sgehrig/symfony,damienalexandre/symfony,xabbuh/symfony,MatTheCat/symfony,curry684/symfony,damienalexandre/symfony,MatTheCat/symfony,OskarStark/symfony,OskarStark/symfony,xabbuh/symfony,d-ph/symfony,OskarStark/symfony,symfony/symfony,ogizanagi/symfony,derrabus/symfony,mpdude/symfony,Tobion/symfony,nicolas-grekas/symfony,xabbuh/symfony,nicolas-grekas/symfony,derrabus/symfony,damienalexandre/symfony,Taluu/symfony,hhamon/symfony,phramz/symfony,Tobion/symfony,Taluu/symfony,tucksaun/symfony,phramz/symfony,zerkms/symfony,derrabus/symfony,d-ph/symfony,xabbuh/symfony,OskarStark/symfony,Nyholm/symfony,oleg-andreyev/symfony,phramz/symfony,nicolas-grekas/symfony,Nyholm/symfony,tucksaun/symfony,hhamon/symfony,Tobion/symfony,Slamdunk/symfony,symfony/symfony,zerkms/symfony,oleg-andreyev/symfony,oleg-andreyev/symfony,stof/symfony,mpdude/symfony,d-ph/symfony,HeahDude/symfony,symfony/symfony,symfony/symfony,d-ph/symfony,Nyholm/symfony,mpdude/symfony,sgehrig/symfony,HeahDude/symfony,Taluu/symfony,paradajozsef/symfony,mpdude/symfony,HeahDude/symfony,tucksaun/symfony,zerkms/symfony,ro0NL/symfony,hhamon/symfony,HeahDude/symfony,oleg-andreyev/symfony,tucksaun/symfony,Slamdunk/symfony,Slamdunk/symfony,Slamdunk/symfony,curry684/symfony,ogizanagi/symfony,Nyholm/symfony,curry684/symfony,phramz/symfony,Tobion/symfony,curry684/symfony,paradajozsef/symfony,sgehrig/symfony,damienalexandre/symfony,stof/symfony,ro0NL/symfony,derrabus/symfony,ogizanagi/symfony,MatTheCat/symfony,hhamon/symfony,ogizanagi/symfony,nicolas-grekas/symfony,stof/symfony,stof/symfony,MatTheCat/symfony,Taluu/symfony,ro0NL/symfony,sgehrig/symfony,ro0NL/symfony