The method register() does not exist on Imanghafoori\HeyMan\WatchingStrategies\BaseManager. It seems like you code against a sub-type of said class. However, the method does not exist in Imanghafoori\HeyMan\Watc...gies\RouterEventManager. Are you sure you never get one of those?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
19
$this->/** @scrutinizer ignore-call */
20
register($value, $cb, $key);
Loading history...
20
}
21
}
22
105
}
23
24
13
public function forgetAbout($models, $event = 'a')
25
{
26
13
foreach ($models as $model) {
27
13
if (is_null($event)) {
28
1
unset($this->data[$model]);
29
} else {
30
13
unset($this->data[$model][$event]);
31
}
32
}
33
13
}
34
35
/**
36
* ViewEventManager constructor.
37
*
38
* @param $value
39
* @param string $param
40
*
41
* @return ViewEventManager
42
*/
43
101
public function init(array $value, string $param = 'a')