'common' of type string is incompatible with the type yii\base\Module expected by parameter $module of common\components\Controller::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
16
$controller = new Controller('test', /** @scrutinizer ignore-type */ 'common');
Loading history...
17
expect('actions should return an array of action settings', $this->assertEquals([
Are you sure the usage of $this->assertEquals(arra...$controller->actions()) targeting PHPUnit\Framework\Assert::assertEquals() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is used.
'common' of type string is incompatible with the type yii\base\Module expected by parameter $module of common\components\Controller::__construct().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
28
$controller = new Controller('test', /** @scrutinizer ignore-type */ 'common');