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

UnexpectedAssociationValue::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 12
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 6
nc 1
nop 4
dl 0
loc 12
ccs 0
cts 12
cp 0
crap 2
rs 9.4285
c 0
b 0
f 0
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