It seems like $analytics defined by parameter $analytics on line 23 can also be of type object<ByTIC\GoogleAnaly...ing\Traits\HasRenderer>; however, ByTIC\GoogleAnalytics\Tr...r\Renderer::newScript() does only seem to accept object<ByTIC\GoogleAnaly...acking\GoogleAnalytics>, maybe add an additional type check?
This check looks at variables that have been passed in as parameters and are passed out again
to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
26
return $script->render();
27
}
28
29
/**
30
* @param string $name
31
* @param GoogleAnalytics $analytics
32
* @return AbstractScript
33
*/
34
protected static function newScript($analytics, $name)
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.