Skip to content

Commit

Permalink
Merge pull request #6757 from kenjis/fix-test-php82-Database-GetTest
Browse files Browse the repository at this point in the history
test: fix Creation of dynamic property error in PHP 8.2
  • Loading branch information
kenjis authored Oct 26, 2022
2 parents 9f77ee2 + 05ceae4 commit da2eabc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/system/Database/Live/GetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,15 @@ public function testGetRowWithReturnType()

public function testGetRowWithCustomReturnType()
{
$testClass = new class () {};
$testClass = new class () {
public $id;
public $name;
public $email;
public $country;
public $created_at;
public $updated_at;
public $deleted_at;
};

$user = $this->db->table('user')->get()->getRow(0, get_class($testClass));

Expand Down

0 comments on commit da2eabc

Please sign in to comment.