Skip to content

Commit 601c8e4

Browse files
committed
php 8 bug
1 parent e84577a commit 601c8e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Relationship.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ public function create_association(Model $model, $attributes = array(), $guard_a
587587
return $record;
588588
}
589589

590-
public function load_eagerly(Table $table, $includes, $models = array(), $attributes = array())
590+
public function load_eagerly(Table $table, $includes, $attributes = array(), $models = array())
591591
{
592592
$this->set_keys($table->class->name);
593593
$this->query_and_attach_related_models_eagerly($table, $models, $attributes, $includes, $this->foreign_key, $table->pk);
@@ -708,7 +708,7 @@ public function load(Model $model)
708708
return $class::first($options);
709709
}
710710

711-
public function load_eagerly(Table $table, $includes, $models = array(), $attributes)
711+
public function load_eagerly(Table $table, $includes, $attributes, $models = array())
712712
{
713713
$this->query_and_attach_related_models_eagerly($table, $models, $attributes, $includes, $this->primary_key, $this->foreign_key);
714714
}

lib/Table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ private function execute_eager_load($models = array(), $attrs = array(), $includ
275275
$nested_includes = array();
276276

277277
$rel = $this->get_relationship($name, true);
278-
$rel->load_eagerly($this, $nested_includes, $models, $attrs);
278+
$rel->load_eagerly($this, $nested_includes, $attrs, $models);
279279
}
280280
}
281281

0 commit comments

Comments
 (0)