The method ElementPromos() does not exist on Dynamic\Elements\Promos\Model\PromoObject. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
54
$this->/** @scrutinizer ignore-call */
55
ElementPromos(),
Loading history...
55
1
$config
56
)
57
);
58
59
1
$fields->dataFieldByName('Image')
60
1
->setFolderName('Uploads/Elements/Promos');
61
1
});
62
63
1
return parent::getCMSFields();
64
}
65
66
/**
67
* @return null
68
*/
69
public function getPage()
70
{
71
$page = null;
72
73
if ($this->ElementPromos()) {
74
if ($this->ElementPromos()->hasMethod('getPage')) {
The method PhotoGallery() does not exist on Dynamic\Elements\Promos\Model\PromoObject. Since you implemented __call, consider adding a @method annotation.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation