@@ -93,10 +93,12 @@ public function testDoNotAllowDatesInsertArrayWithoutDatesSetsTimestamp(): void
9393 $ user = $ this ->model ->find ($ id );
9494
9595 $ expected = '2023-11-25 12:00:00 ' ;
96+
9697 if ($ this ->db ->DBDriver === 'SQLSRV ' ) {
9798 $ expected .= '.000 ' ;
9899 }
99- $ this ->assertSame ($ expected , $ user ['created_at ' ]);
100+
101+ $ this ->assertSame ($ expected , $ user ['created_at ' ]); // @phpstan-ignore offsetAccess.notFound
100102 $ this ->assertSame ($ expected , $ user ['updated_at ' ]);
101103 }
102104
@@ -116,10 +118,12 @@ public function testDoNotAllowDatesInsertArrayWithDatesSetsTimestamp(): void
116118 $ user = $ this ->model ->find ($ id );
117119
118120 $ expected = '2023-11-25 12:00:00 ' ;
121+
119122 if ($ this ->db ->DBDriver === 'SQLSRV ' ) {
120123 $ expected .= '.000 ' ;
121124 }
122- $ this ->assertSame ($ expected , $ user ['created_at ' ]);
125+
126+ $ this ->assertSame ($ expected , $ user ['created_at ' ]); // @phpstan-ignore offsetAccess.notFound
123127 $ this ->assertSame ($ expected , $ user ['updated_at ' ]);
124128 }
125129
@@ -139,15 +143,17 @@ public function testDoNotAllowDatesUpdateArrayUpdatesUpdatedAt(): void
139143 $ user = $ this ->model ->find ($ id );
140144
141145 $ user ['country ' ] = 'CA ' ;
142- $ this ->model ->update ($ user ['id ' ], $ user );
146+ $ this ->model ->update ($ user ['id ' ], $ user ); // @phpstan-ignore offsetAccess.notFound
143147
144148 $ user = $ this ->model ->find ($ id );
145149
146150 $ expected = '2023-11-25 12:00:00 ' ;
151+
147152 if ($ this ->db ->DBDriver === 'SQLSRV ' ) {
148153 $ expected .= '.000 ' ;
149154 }
150- $ this ->assertSame ($ expected , $ user ['created_at ' ]);
155+
156+ $ this ->assertSame ($ expected , $ user ['created_at ' ]); // @phpstan-ignore offsetAccess.notFound
151157 $ this ->assertSame ($ expected , $ user ['updated_at ' ]);
152158 }
153159
@@ -197,10 +203,12 @@ public function testAllowDatesInsertArrayWithoutDatesSetsTimestamp(): void
197203 $ user = $ this ->model ->find ($ id );
198204
199205 $ expected = '2023-11-25 12:00:00 ' ;
206+
200207 if ($ this ->db ->DBDriver === 'SQLSRV ' ) {
201208 $ expected .= '.000 ' ;
202209 }
203- $ this ->assertSame ($ expected , $ user ['created_at ' ]);
210+
211+ $ this ->assertSame ($ expected , $ user ['created_at ' ]); // @phpstan-ignore offsetAccess.notFound
204212 $ this ->assertSame ($ expected , $ user ['updated_at ' ]);
205213 }
206214
@@ -224,10 +232,12 @@ public function testAllowDatesInsertArrayWithDatesSetsTimestamp(): void
224232 $ user = $ this ->model ->find ($ id );
225233
226234 $ expected = '2000-01-01 12:00:00 ' ;
235+
227236 if ($ this ->db ->DBDriver === 'SQLSRV ' ) {
228237 $ expected .= '.000 ' ;
229238 }
230- $ this ->assertSame ($ expected , $ user ['created_at ' ]);
239+
240+ $ this ->assertSame ($ expected , $ user ['created_at ' ]); // @phpstan-ignore offsetAccess.notFound
231241 $ this ->assertSame ($ expected , $ user ['updated_at ' ]);
232242 }
233243
@@ -251,15 +261,17 @@ public function testAllowDatesUpdateArrayUpdatesUpdatedAt(): void
251261 $ user = $ this ->model ->find ($ id );
252262
253263 $ user ['country ' ] = 'CA ' ;
254- $ this ->model ->update ($ user ['id ' ], $ user );
264+ $ this ->model ->update ($ user ['id ' ], $ user ); // @phpstan-ignore offsetAccess.notFound
255265
256266 $ user = $ this ->model ->find ($ id );
257267
258268 $ expected = '2000-01-01 12:00:00 ' ;
269+
259270 if ($ this ->db ->DBDriver === 'SQLSRV ' ) {
260271 $ expected .= '.000 ' ;
261272 }
262- $ this ->assertSame ($ expected , $ user ['created_at ' ]);
273+
274+ $ this ->assertSame ($ expected , $ user ['created_at ' ]); // @phpstan-ignore offsetAccess.notFound
263275 $ this ->assertSame ($ expected , $ user ['updated_at ' ]);
264276 }
265277
0 commit comments