When using the OOUI\RadioSelectInputWidget PHP class to create a group of radio buttons no role='radiogroup' element is created to encapsulate the radio buttons. This is a different behavior to when I use OO.ui.RadioSelectInputWidget in JS.
Also the role='radiogroup' element is helpful navigating with screen readers.