#63477Use name-resolution instead of strings where possible
Description
Use …::class instead of just strings where possible. This will allow to easily track references, find typos in classnames etc.
This feature is possible since PHP 5.5. Master meanwhile requires 5.5.
Original introduction of this feature was in #63112, this here adds in various more places.
Regexp used to find occurrences manually: ‘\\\\?\w{3,}(\\\\?\w{3,})+
Reviews 17
- main 34855[TASK] Use name-resolution instead of strings where possible: 2
- main 35091[TASK] Use name-resolution instead of strings where possible: 17
- main 34863[TASK] Use name-resolution instead of strings where possible: 8
- main 34866[TASK] Use name-resolution instead of strings where possible: 10
- main 34867[TASK] Use name-resolution instead of strings where possible: 11
- main 34868[TASK] Use name-resolution instead of strings where possible: 12
- main 34858[TASK] Use name-resolution instead of strings where possible: 5
- main 34860[TASK] Use name-resolution instead of strings where possible: 6
- main 34862[TASK] Use name-resolution instead of strings where possible: 7
- main 34864[TASK] Use name-resolution instead of strings where possible: 9
- main 34871[TASK] Use name-resolution instead of strings where possible: 15
- main 34869[TASK] Use name-resolution instead of strings where possible: 13
- main 34870[TASK] Use name-resolution instead of strings where possible: 14
- main 34872[TASK] Use name-resolution instead of strings where possible: 16
- main 34857[TASK] Use name-resolution instead of strings where possible: 4
- main 34856[TASK] Use name-resolution instead of strings where possible: 3
- main 34849[TASK] Use name-resolution instead of strings where possible: 1