Skip to content

Commit 47b9c4b

Browse files
committed
fix: cannot override Email Preferences with $overrides
1 parent 4cd5c07 commit 47b9c4b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Helpers/email_helper.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
/**
1818
* Provides convenient access to the CodeIgniter Email class.
1919
*
20+
* @param array<string, mixed> $overrides Email preferences to override.
21+
*
2022
* @internal
2123
*/
2224
function emailer(array $overrides = []): Email
@@ -46,7 +48,7 @@ function emailer(array $overrides = []): Email
4648
];
4749

4850
if ($overrides !== []) {
49-
$config = array_merge($overrides, $config);
51+
$config = array_merge($config, $overrides);
5052
}
5153

5254
/** @var Email $email */

0 commit comments

Comments
 (0)