File tree Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Expand file tree Collapse file tree 4 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,7 @@ public function testThatGetterReturnsExpectedValue(
82
82
83
83
$ logRequest = new LogLoginFailure (new User ());
84
84
85
- if ($ meta !== null
86
- && method_exists ($ meta , 'isManyToManyOwningSide ' )
85
+ if ($ meta instanceof AssociationMapping
87
86
&& (
88
87
$ meta ->isManyToManyOwningSide ()
89
88
|| $ meta ->isOneToMany ()
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public function testThatGetterReturnsExpectedValue(
98
98
new User (),
99
99
);
100
100
101
- if (method_exists ( $ meta, ' isManyToManyOwningSide ' )
101
+ if ($ meta instanceof AssociationMapping
102
102
&& (
103
103
$ meta ->isManyToManyOwningSide ()
104
104
|| $ meta ->isOneToMany ()
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ public function testThatGetterReturnsExpectedValue(
100
100
101
101
$ value = $ logRequest ->{$ getter }();
102
102
103
- if (method_exists ( $ meta, ' isManyToManyOwningSide ' )
103
+ if ($ meta instanceof AssociationMapping
104
104
&& (
105
105
$ meta ->isManyToManyOwningSide ()
106
106
|| $ meta ->isOneToMany ()
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ public function testThatSetterOnlyAcceptSpecifiedType(
141
141
string $ type ,
142
142
FieldMapping |AssociationMapping $ meta ,
143
143
): void {
144
- if (method_exists ( $ meta, ' isManyToManyOwningSide ' )
144
+ if ($ meta instanceof AssociationMapping
145
145
&& (
146
146
$ meta ->isManyToManyOwningSide ()
147
147
|| $ meta ->isOneToMany ()
@@ -178,7 +178,7 @@ public function testThatSetterReturnsInstanceOfEntity(
178
178
string $ type ,
179
179
FieldMapping |AssociationMapping $ meta ,
180
180
): void {
181
- if (method_exists ( $ meta, ' isManyToManyOwningSide ' )
181
+ if ($ meta instanceof AssociationMapping
182
182
&& (
183
183
$ meta ->isManyToManyOwningSide ()
184
184
|| $ meta ->isOneToMany ()
@@ -227,7 +227,7 @@ public function testThatGetterReturnsExpectedValue(
227
227
/** @var callable $callable */
228
228
$ callable = [$ entity , $ getter ];
229
229
230
- if (method_exists ( $ meta, ' isManyToManyOwningSide ' )
230
+ if ($ meta instanceof AssociationMapping
231
231
&& (
232
232
$ meta ->isManyToManyOwningSide ()
233
233
|| $ meta ->isOneToMany ()
You can’t perform that action at this time.
0 commit comments