The method registerFunction() does not exist on Nip\View\Traits\HasMethodsTrait. 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