Issues (26)

src/Commander.php (3 issues)

1
<?php
2
3
namespace CleaniqueCoders\Console;
4
5
use CleaniqueCoders\Console\Traits\ComposerTrait;
6
use CleaniqueCoders\Console\Traits\GitTrait;
7
use CleaniqueCoders\Console\Traits\ProjectTrait;
8
use CleaniqueCoders\Console\Traits\QualifiedClassNameTrait;
9
use Illuminate\Filesystem\Filesystem;
10
use Symfony\Component\Console\Command\Command;
11
12
class Commander extends Command
13
{
14
    use ComposerTrait;
0 ignored issues
show
The trait CleaniqueCoders\Console\Traits\ComposerTrait requires the property $autoload which is not provided by CleaniqueCoders\Console\Commander.
Loading history...
15
    use ProjectTrait;
16
    use QualifiedClassNameTrait;
17
    use GitTrait;
18
19
    /**
20
     * Filesystem.
21
     *
22
     * @var Symfony\Component\Filesystem\Filesystem
0 ignored issues
show
The type CleaniqueCoders\Console\...t\Filesystem\Filesystem was not found. Did you mean Symfony\Component\Filesystem\Filesystem? If so, make sure to prefix the type with \.
Loading history...
23
     */
24
    protected $filesystem;
25
26
    public function __construct($name = null)
27
    {
28
        parent::__construct($name);
29
        $this->filesystem = new Filesystem();
0 ignored issues
show
Documentation Bug introduced by
It seems like new Illuminate\Filesystem\Filesystem() of type Illuminate\Filesystem\Filesystem is incompatible with the declared type CleaniqueCoders\Console\...t\Filesystem\Filesystem of property $filesystem.

Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.

Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..

Loading history...
30
    }
31
}
32