From 104c23eef44067d7df231a9c77716caf465f1c7f Mon Sep 17 00:00:00 2001
From: Tigrov <rrr-r@ya.ru>
Date: Wed, 11 Sep 2024 20:51:30 +0700
Subject: [PATCH] `assignProperties()` -> `populateProperties()`

---
 src/AbstractActiveRecord.php    | 2 +-
 tests/ActiveQueryTest.php       | 2 +-
 tests/ActiveRecordTest.php      | 2 +-
 tests/MagicActiveRecordTest.php | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/AbstractActiveRecord.php b/src/AbstractActiveRecord.php
index 60ebb1262..b639136fd 100644
--- a/src/AbstractActiveRecord.php
+++ b/src/AbstractActiveRecord.php
@@ -632,7 +632,7 @@ public function set(string $name, mixed $value): void
      *
      * {@see properties()}
      */
-    public function assignProperties(array $values): void
+    public function populateProperties(array $values): void
     {
         $values = array_intersect_key($values, array_flip($this->properties()));
 
diff --git a/tests/ActiveQueryTest.php b/tests/ActiveQueryTest.php
index 9a59329c1..f69c711b4 100644
--- a/tests/ActiveQueryTest.php
+++ b/tests/ActiveQueryTest.php
@@ -2244,7 +2244,7 @@ public function testOldPropertyAfterInsertAndUpdate(): void
 
         $customer = new Customer();
 
-        $customer->assignProperties([
+        $customer->populateProperties([
             'email' => 'info@example.com',
             'name' => 'Jack',
             'address' => '123 Ocean Dr',
diff --git a/tests/ActiveRecordTest.php b/tests/ActiveRecordTest.php
index 0ab512383..7a3553b5a 100644
--- a/tests/ActiveRecordTest.php
+++ b/tests/ActiveRecordTest.php
@@ -450,7 +450,7 @@ public function testSetProperties(): void
 
         $customer = new Customer();
 
-        $customer->assignProperties($properties);
+        $customer->populateProperties($properties);
 
         $this->assertTrue($customer->save());
     }
diff --git a/tests/MagicActiveRecordTest.php b/tests/MagicActiveRecordTest.php
index 2b0f3def1..e8c3ba64b 100644
--- a/tests/MagicActiveRecordTest.php
+++ b/tests/MagicActiveRecordTest.php
@@ -436,7 +436,7 @@ public function testAssignProperties(): void
 
         $customer = new Customer();
 
-        $customer->assignProperties($properties);
+        $customer->populateProperties($properties);
 
         $this->assertTrue($customer->save());
     }