Issues (3)

src/Traits/Argumentable.php (1 issue)

Labels
Severity
1
<?php
2
3
namespace Helldar\LaravelActions\Traits;
4
5
/** @mixin \Illuminate\Console\Command */
6
trait Argumentable
7
{
8 8
    protected function argumentName(): string
9
    {
10 8
        $value = (string) $this->argument('name');
0 ignored issues
show
The method argument() does not exist on Helldar\LaravelActions\Traits\Argumentable. Did you maybe mean argumentName()? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

10
        $value = (string) $this->/** @scrutinizer ignore-call */ argument('name');

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...
11
12 8
        return trim($value);
13
    }
14
}
15