Passed
Push — master ( 64f583...8f8432 )
by Bukashk0zzz
03:12
created

Tests/Form/AbstractFormTypeExtension.php (1 issue)

Labels
Severity
1
<?php declare(strict_types = 1);
2
3
namespace Bukashk0zzz\FilterBundle\Tests\Form;
4
5
use Bukashk0zzz\FilterBundle\Service\Filter;
6
use Doctrine\Common\Annotations\AnnotationReader;
7
use Doctrine\Common\Annotations\CachedReader;
8
use Doctrine\Common\Cache\ArrayCache;
0 ignored issues
show
The type Doctrine\Common\Cache\ArrayCache 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...
9
use Symfony\Component\Form\Test\TypeTestCase;
10
11
/**
12
 * AbstractFormTypeExtension.
13
 */
14
abstract class AbstractFormTypeExtension extends TypeTestCase
15
{
16
    /**
17
     * @var bool
18
     */
19
    protected $autoFilter = true;
20
21
    /**
22
     * @return array<mixed>
23
     */
24
    protected function getExtensions(): array
25
    {
26
        return \array_merge(parent::getExtensions(), [
27
            new FilterExtension(new Filter(new CachedReader(new AnnotationReader(), new ArrayCache())), $this->autoFilter),
28
        ]);
29
    }
30
}
31