new SilverStripe\Forms\C...l('AllChangesEnabled')) of type SilverStripe\Forms\CheckboxField is incompatible with the type array expected by parameter $args of SilverStripe\View\ViewableData::create().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
40
FieldGroup::create(/** @scrutinizer ignore-type */ new CheckboxField('AllChangesEnabled', $this->owner->fieldLabel('AllChangesEnabled')))