If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
17
if ($this->app->/** @scrutinizer ignore-call */ runningInConsole()) {
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
Loading history...
23
}
24
25
/**
26
* Register the service provider.
27
*
28
* @return void
29
*/
30
public function register()
31
{
32
$this->app->singleton(TranslatorContract::class, function ($app) {
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
32
$this->app->/** @scrutinizer ignore-call */
33
singleton(TranslatorContract::class, function ($app) {
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
The method publishes() does not exist on Signifly\Translator\TranslatorServiceProvider. Did you maybe mean publishConfigs()?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
49
$this->/** @scrutinizer ignore-call */
50
publishes([
This check looks for calls to methods that do not seem to exist on a given type.
It looks for the method on the type itself as well as in inherited classes or
implemented interfaces.
This is most likely a typographical error or the method has been renamed.
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.