These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Class StubDocumentSetMockExtension |
||
5 | * |
||
6 | * @package dms |
||
7 | */ |
||
8 | class StubDocumentSetMockExtension extends DataExtension implements TestOnly |
||
0 ignored issues
–
show
|
|||
9 | { |
||
10 | /** |
||
11 | * |
||
12 | * For method {@link DMSDocumentSet::addQueryFields} |
||
13 | * |
||
14 | * @param FieldList $fields |
||
15 | * |
||
16 | * @return FieldList |
||
17 | */ |
||
18 | public function updateQueryFields($fields) |
||
19 | { |
||
20 | $fields->addFieldToTab('Root.QueryBuilder', new TextField('ExtendedField')); |
||
21 | |||
22 | return $fields; |
||
23 | } |
||
24 | } |
||
25 |
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.