Failed Conditions
Push — 2.7 ( c036c0...266f0d )
by Jonathan
57:23 queued 50:07
created

Models/DDC2372/Traits/DDC2372AddressTrait.php (1 issue)

1
<?php
2
3
namespace Doctrine\Tests\Models\DDC2372\Traits;
4
5
trait DDC2372AddressTrait
6
{
7
    /**
8
     * @OneToOne(targetEntity="Doctrine\Tests\Models\DDC2372\DDC2372Address", inversedBy="user")
9
     * @JoinColumn(name="address_id", referencedColumnName="id")
10
     */
11
    private $address;
12
13
    public function getAddress()
14
    {
15
        return $this->address;
16
    }
17
18
    public function setAddress(Address $address)
0 ignored issues
show
The type Doctrine\Tests\Models\DDC2372\Traits\Address 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...
19
    {
20
        if ($this->address !== $address) {
21
            $this->address = $address;
22
            $address->setUser($this);
23
        }
24
    }
25
}