File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 23
23
class <?= $ transformer ->name ?> extends TransformerAbstract
24
24
{
25
25
<?php if (!empty ($ transformer ->availableRelations )):?>
26
- protected $availableIncludes = ['<?= implode ("', ' " , $ transformer ->availableRelations )?> '];
26
+ protected array $availableIncludes = ['<?= implode ("', ' " , $ transformer ->availableRelations )?> '];
27
27
<?php else :?>
28
- protected $availableIncludes = [];
28
+ protected array $availableIncludes = [];
29
29
<?php endif ;?>
30
30
<?php if (!empty ($ transformer ->defaultRelations )):?>
31
- protected $defaultIncludes = ['<?= implode ("', ' " , $ transformer ->defaultRelations )?> '];
31
+ protected array $defaultIncludes = ['<?= implode ("', ' " , $ transformer ->defaultRelations )?> '];
32
32
<?php else :?>
33
- protected $defaultIncludes = [];
33
+ protected array $defaultIncludes = [];
34
34
<?php endif ;?>
35
35
36
36
public function transform(<?= $ transformer ->dbModel ->getClassName ()?> $model)
You can’t perform that action at this time.
0 commit comments