It seems like setExportedVariables() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
13
$this->/** @scrutinizer ignore-call */
14
setExportedVariables();
Loading history...
14
2
$result = [];
15
2
foreach ($this->exportedVariables as $sourceName => $destinationName) {
16
2
$omitEmpty = false;
17
2
$castType = null;
18
2
if (strpos($destinationName, ',') !== false) {
19
1
$splitted = explode(',', $destinationName);
20
array_map(function ($item) use (&$castType, &$omitEmpty) {