From 2a03789e7c2e34ff67dc65bf86538c013b4ecb94 Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Mon, 1 Jun 2026 15:11:07 +0000 Subject: [PATCH] - Defined nullable adapter --- src/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Repository.php b/src/Repository.php index abc8654..07da296 100644 --- a/src/Repository.php +++ b/src/Repository.php @@ -31,7 +31,7 @@ class Repository implements RepositoryInterface protected array $joined = []; - public function __construct(string $entity, string $alias = self::DEFAULT_ALIAS, ConnectionAdapter $adapter = null) { + public function __construct(string $entity, string $alias = self::DEFAULT_ALIAS, ?ConnectionAdapter $adapter = null) { $this->entityClass = $entity; $this->alias = $alias; $this->entityResolver = Ulmus::resolveEntity($entity);