Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function getCMSFields() |
||
25 | { |
||
26 | $fields = parent::getCMSFields(); |
||
27 | $fields->addFieldsToTab('Root.Validation', array( |
||
28 | NumericField::create('Min', _t('UserNumericField.Min', 'Minimum required number')), |
||
29 | NumericField::create('Max', _t('UserNumericField.Max', 'Maximum required number')) |
||
30 | )); |
||
31 | |||
32 | return $fields; |
||
33 | } |
||
34 | |||
58 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.