minor #30869 [Validator] Define null return type for Constraint::getDefaultOption() (jaikdean)
minor #30869 [Validator] Define null return type for Constraint::getDefaultOption() (jaikdean)

This PR was submitted for the 4.2 branch but it was merged into the 3.4 branch instead (closes #30869).

Discussion
----------

[Validator] Define null return type for Constraint::getDefaultOption()

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

The `Constraint::getDefaultOption()` method is documented with a return type of `string`, but has no `return` statement. This behaviour is expected, as the return value is compared against `null` elsewhere in the code, but the docblock causes problems with static analysis when extending this class.

This PR corrects the documented return type to `string|null` and adds an explicit `return null`.

Commits
-------

03987f2ba5 Define null return type for Constraint::getDefaultOption()

gnat42/symfony,zcodes/symfony,gnat42/symfony,docteurklein/symfony,garak/symfony,maidmaid/symfony,alekitto/symfony,lyrixx/symfony,shieldo/symfony,OskarStark/symfony,ajgarlag/symfony,OskarStark/symfony,damienalexandre/symfony,phramz/symfony,docteurklein/symfony,zcodes/symfony,bendavies/symfony,stof/symfony,HeahDude/symfony,Simperfit/symfony,romaricdrigon/symfony,smatyas/symfony,alekitto/symfony,romaricdrigon/symfony,lstrojny/symfony,lstrojny/symfony,sgehrig/symfony,chalasr/symfony,xabbuh/symfony,mnapoli/symfony,Tobion/symfony,symfony/symfony,mpdude/symfony,hhamon/symfony,joelwurtz/symfony,kbond/symfony,pyrech/symfony,d-ph/symfony,bendavies/symfony,fabpot/symfony,Nyholm/symfony,Deamon/symfony,symfony/symfony,lyrixx/symfony,docteurklein/symfony,ogizanagi/symfony,localheinz/symfony,shieldo/symfony,gnat42/symfony,docteurklein/symfony,zorn-v/symfony,gonzalovilaseca/symfony,shieldo/symfony,vincentaubert/symfony,Koc/symfony,ro0NL/symfony,d-ph/symfony,Tobion/symfony,lyrixx/symfony,andreia/symfony,Simperfit/symfony,romaricdrigon/symfony,ajgarlag/symfony,arjenm/symfony,maidmaid/symfony,zerkms/symfony,ro0NL/symfony,Koc/symfony,derrabus/symfony,joelwurtz/symfony,zcodes/symfony,hhamon/symfony,maidmaid/symfony,zcodes/symfony,zorn-v/symfony,MatTheCat/symfony,lyrixx/symfony,curry684/symfony,mpdude/symfony,derrabus/symfony,yceruto/symfony,nicolas-grekas/symfony,smatyas/symfony,mweimerskirch/symfony,dmaicher/symfony,mweimerskirch/symfony,xabbuh/symfony,sgehrig/symfony,HeahDude/symfony,tucksaun/symfony,nicolas-grekas/symfony,MatTheCat/symfony,bendavies/symfony,phramz/symfony,Nyholm/symfony,chalasr/symfony,damienalexandre/symfony,tucksaun/symfony,teohhanhui/symfony,jakzal/symfony,mnapoli/symfony,phramz/symfony,pierredup/symfony,Nyholm/symfony,docteurklein/symfony,jakzal/symfony,teohhanhui/symfony,Taluu/symfony,1ed/symfony,Koc/symfony,vincentaubert/symfony,mpdude/symfony,derrabus/symfony,oleg-andreyev/symfony,curry684/symfony,fabpot/symfony,zorn-v/symfony,romaricdrigon/symfony,mweimerskirch/symfony,chalasr/symfony,jvasseur/symfony,ajgarlag/symfony,smatyas/symfony,ogizanagi/symfony,1ed/symfony,tucksaun/symfony,fabpot/symfony,vincentaubert/symfony,Slamdunk/symfony,mnapoli/symfony,voronkovich/symfony,kbond/symfony,Tobion/symfony,joelwurtz/symfony,alekitto/symfony,jvasseur/symfony,yceruto/symfony,jderusse/symfony,ro0NL/symfony,localheinz/symfony,voronkovich/symfony,fabpot/symfony,ro0NL/symfony,vincentaubert/symfony,jvasseur/symfony,Taluu/symfony,maidmaid/symfony,jakzal/symfony,sgehrig/symfony,paradajozsef/symfony,pyrech/symfony,d-ph/symfony,derrabus/symfony,Tobion/symfony,gonzalovilaseca/symfony,hhamon/symfony,stof/symfony,ragboyjr/symfony,pierredup/symfony,andreia/symfony,oleg-andreyev/symfony,Simperfit/symfony,garak/symfony,localheinz/symfony,HeahDude/symfony,jderusse/symfony,stof/symfony,mweimerskirch/symfony,gnat42/symfony,Simperfit/symfony,d-ph/symfony,stof/symfony,curry684/symfony,ogizanagi/symfony,jderusse/symfony,localheinz/symfony,dmaicher/symfony,zorn-v/symfony,tucksaun/symfony,ragboyjr/symfony,Deamon/symfony,tgalopin/symfony,voronkovich/symfony,smatyas/symfony,zerkms/symfony,ogizanagi/symfony,xabbuh/symfony,lstrojny/symfony,gonzalovilaseca/symfony,1ed/symfony,yceruto/symfony,tgalopin/symfony,chalasr/symfony,mweimerskirch/symfony,damienalexandre/symfony,tgalopin/symfony,Nyholm/symfony,teohhanhui/symfony,pierredup/symfony,voronkovich/symfony,joelwurtz/symfony,oleg-andreyev/symfony,mnapoli/symfony,hhamon/symfony,arjenm/symfony,MatTheCat/symfony,pierredup/symfony,zerkms/symfony,kbond/symfony,tgalopin/symfony,Taluu/symfony,phramz/symfony,jakzal/symfony,andreia/symfony,shieldo/symfony,nicolas-grekas/symfony,oleg-andreyev/symfony,pyrech/symfony,jvasseur/symfony,paradajozsef/symfony,OskarStark/symfony,Deamon/symfony,smatyas/symfony,symfony/symfony,jderusse/symfony,andreia/symfony,OskarStark/symfony,Slamdunk/symfony,garak/symfony,damienalexandre/symfony,arjenm/symfony,xabbuh/symfony,ajgarlag/symfony,sgehrig/symfony,HeahDude/symfony,Slamdunk/symfony,Deamon/symfony,mnapoli/symfony,Koc/symfony,paradajozsef/symfony,garak/symfony,1ed/symfony,alekitto/symfony,dmaicher/symfony,Taluu/symfony,zerkms/symfony,gonzalovilaseca/symfony,yceruto/symfony,Deamon/symfony,paradajozsef/symfony,kbond/symfony,curry684/symfony,Slamdunk/symfony,ragboyjr/symfony,teohhanhui/symfony,symfony/symfony,nicolas-grekas/symfony,pyrech/symfony,bendavies/symfony,Simperfit/symfony,arjenm/symfony,MatTheCat/symfony,dmaicher/symfony,mpdude/symfony,ragboyjr/symfony