File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -269,21 +269,21 @@ protected function toCollection(array $records = [])
269269 /**
270270 * Create a related model instanced.
271271 *
272- * @param array $attributes
272+ * @param mixed $attributes
273273 *
274- * @return Model
274+ * @return Model | null
275275 */
276- protected function toModel ($ attributes = [])
276+ protected function toModel (mixed $ attributes = []): Model | null
277277 {
278278 if ($ attributes === null ) {
279- return ;
279+ return null ;
280280 }
281281
282282 $ connection = $ this ->related ->getConnection ();
283283
284284 $ model = $ this ->related ->newFromBuilder (
285285 (array ) $ attributes ,
286- $ connection ? $ connection ->getName () : null ,
286+ $ connection? ->getName(),
287287 );
288288
289289 $ model ->setParentRelation ($ this );
You can’t perform that action at this time.
0 commit comments