Test Failed
Push — 1.0.x ( be34fd...48f1ab )
by Koldo
06:32 queued 04:07
created

ConfigProvider::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 4
c 1
b 1
f 0
nc 1
nop 0
dl 0
loc 6
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pheature\Crud\Psr11\Toggle\Container;
6
7
use Pheature\Community\Mezzio\ToggleConfigFactory;
0 ignored issues
show
Bug introduced by
The type Pheature\Community\Mezzio\ToggleConfigFactory was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
8
use Pheature\Crud\Psr11\Toggle\ToggleConfig;
9
10
final class ConfigProvider
11
{
12
    /**
13
     * @return array<string, array<string, array<string, string>>>
14
     */
15
    public function __invoke(): array
16
    {
17
        return [
18
            'dependencies' => [
19
                'factories' => [
20
                    ToggleConfig::class => ToggleConfigFactory::class,
21
                ],
22
            ],
23
        ];
24
    }
25
}
26