Issues (136)

code/shell_commands/FixPSR2.php (1 issue)

1
<?php
2
class FixPSR2 extends RunCommandLineMethodOnModule
3
{
4
    public function __construct($rootDirForModule = '')
5
    {
6
        parent::__construct($rootDirForModule);
7
        $this->commands = [
0 ignored issues
show
Documentation Bug introduced by
It seems like array('cp ' . Director::...fix > errorsToFix.txt') of type array<integer,string> is incompatible with the declared type string of property $commands.

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...
8
            'cp '.Director::baseFolder(). '/modulechecks/ecs.yml ./',
9
            'composer require --dev symplify/easy-coding-standard',
10
            'vendor/bin/ecs check app/src --fix > errorsToFix.txt',
11
        ];
12
    }
13
}
14