diff --git a/tests/Stubs/ActiveRecord/OrderWithFactory.php b/tests/Stubs/ActiveRecord/OrderWithFactory.php index 026ca94ab..d0a8b9282 100644 --- a/tests/Stubs/ActiveRecord/OrderWithFactory.php +++ b/tests/Stubs/ActiveRecord/OrderWithFactory.php @@ -16,10 +16,12 @@ public function relationQuery(string $name): ActiveQueryInterface return match ($name) { 'customerWithFactory' => $this->hasOne(CustomerWithFactory::class, ['id' => 'customer_id']), 'customerWithFactoryClosure' => $this->hasOne( - fn () => $this->factory->create(CustomerWithFactory::class), ['id' => 'customer_id'] + fn () => $this->factory->create(CustomerWithFactory::class), + ['id' => 'customer_id'] ), 'customerWithFactoryInstance' => $this->hasOne( - $this->factory->create(CustomerWithFactory::class), ['id' => 'customer_id'] + $this->factory->create(CustomerWithFactory::class), + ['id' => 'customer_id'] ), default => parent::relationQuery($name), }; diff --git a/tests/Support/ConnectionHelper.php b/tests/Support/ConnectionHelper.php index df0e89527..14bde41a5 100644 --- a/tests/Support/ConnectionHelper.php +++ b/tests/Support/ConnectionHelper.php @@ -4,7 +4,6 @@ namespace Yiisoft\ActiveRecord\Tests\Support; -use Yiisoft\ActiveRecord\ActiveRecordFactory; use Yiisoft\Cache\ArrayCache; use Yiisoft\Db\Cache\SchemaCache; use Yiisoft\Db\Connection\ConnectionInterface;