You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yield'one to one' => [__DIR__ . '/data/EntityWithBrokenOneToOneRelations.php', [
32
+
yield'one to one' => [__DIR__ . '/data/EntityWithBrokenOneToOneRelations.php',
33
33
[
34
-
'Property can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
35
-
31,
36
-
],
37
-
[
38
-
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
39
-
37,
40
-
],
41
-
[
42
-
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\MyEntity|null.',
43
-
50,
44
-
],
45
-
[
46
-
'Property can contain PHPStan\Rules\Doctrine\ORM\MyEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity|null.',
47
-
50,
48
-
]
49
-
]];
34
+
[
35
+
'Property can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
36
+
31,
37
+
],
38
+
[
39
+
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
40
+
37,
41
+
],
42
+
[
43
+
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\MyEntity|null.',
44
+
50,
45
+
],
46
+
[
47
+
'Property can contain PHPStan\Rules\Doctrine\ORM\MyEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity|null.',
48
+
50,
49
+
],
50
+
]];
50
51
51
-
yield'many to one' => [__DIR__ . '/data/EntityWithBrokenManyToOneRelations.php', [
52
+
yield'many to one' => [__DIR__ . '/data/EntityWithBrokenManyToOneRelations.php',
52
53
[
53
-
'Property can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
54
-
31,
55
-
],
56
-
[
57
-
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
58
-
37,
59
-
],
54
+
[
55
+
'Property can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
56
+
31,
57
+
],
58
+
[
59
+
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\AnotherEntity.',
60
+
37,
61
+
],
62
+
[
63
+
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\MyEntity|null.',
64
+
50,
65
+
],
66
+
[
67
+
'Property can contain PHPStan\Rules\Doctrine\ORM\MyEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity|null.',
68
+
50,
69
+
],
70
+
]];
71
+
72
+
yield'one to many' => [__DIR__ . '/data/EntityWithBrokenOneToManyRelations.php',
60
73
[
61
-
'Database can contain PHPStan\Rules\Doctrine\ORM\AnotherEntity|null but property expects PHPStan\Rules\Doctrine\ORM\MyEntity|null.',
62
-
50,
63
-
],
74
+
[
75
+
'Property can contain iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity> but database expects Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
76
+
24,
77
+
],
78
+
[
79
+
'Property can contain Doctrine\Common\Collections\Collection but database expects Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
80
+
30,
81
+
],
82
+
[
83
+
'Database can contain Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity> but property expects array<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
84
+
36,
85
+
],
86
+
[
87
+
'Property can contain array<PHPStan\Rules\Doctrine\ORM\AnotherEntity> but database expects Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
88
+
36,
89
+
],
90
+
]];
91
+
92
+
yield'many to many' => [__DIR__ . '/data/EntityWithBrokenManyToManyRelations.php',
64
93
[
65
-
'Property can contain PHPStan\Rules\Doctrine\ORM\MyEntity|null but database expects PHPStan\Rules\Doctrine\ORM\AnotherEntity|null.',
66
-
50,
67
-
]
68
-
]];
94
+
[
95
+
'Property can contain iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity> but database expects Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
96
+
24,
97
+
],
98
+
[
99
+
'Property can contain Doctrine\Common\Collections\Collection but database expects Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
100
+
30,
101
+
],
102
+
[
103
+
'Database can contain Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity> but property expects array<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
104
+
36,
105
+
],
106
+
[
107
+
'Property can contain array<PHPStan\Rules\Doctrine\ORM\AnotherEntity> but database expects Doctrine\Common\Collections\Collection&iterable<PHPStan\Rules\Doctrine\ORM\AnotherEntity>.',
0 commit comments