Failed Conditions
Pull Request — master (#6743)
by Grégoire
14:59
created

UnexpectedAssociationValue   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 0
cts 12
cp 0
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 12 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Doctrine\ORM;
6
7
final class UnexpectedAssociationValue extends \Exception implements CacheException
0 ignored issues
show
Bug introduced by
The type Doctrine\ORM\CacheException 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
{
9
    public static function create(
10
        string $class,
11
        string $association,
12
        string $given,
13
        string $expected
14
    ) : self {
15
        return new self(sprintf(
16
            'Found entity of type %s on association %s#%s, but expecting %s',
17
            $given,
18
            $class,
19
            $association,
20
            $expected
21
        ));
22
    }
23
}
24