New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Email config in the .env doesn't appear as expected #7077
Comments
totoprayogo1916
added
the
bug
Verified issues on the current code behavior or pull requests that will fix them
label
Jan 10, 2023
I guess all variables with no default content will show "undefined". |
It seems |
It seems not.
|
Workaround: --- a/app/Config/Email.php
+++ b/app/Config/Email.php
@@ -6,9 +6,9 @@ use CodeIgniter\Config\BaseConfig;
class Email extends BaseConfig
{
- public string $fromEmail;
- public string $fromName;
- public string $recipients;
+ public string $fromEmail = '';
+ public string $fromName = '';
+ public string $recipients = '';
/**
* The "user agent" Or --- a/app/Config/Email.php
+++ b/app/Config/Email.php
@@ -6,9 +6,9 @@ use CodeIgniter\Config\BaseConfig;
class Email extends BaseConfig
{
- public string $fromEmail;
- public string $fromName;
- public string $recipients;
+ public $fromEmail;
+ public $fromName;
+ public $recipients;
/**
* The "user agent" |
5 tasks
I sent a PR: #7078 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PHP Version
7.4
CodeIgniter4 Version
4.3.0
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Windows
Which server did you use?
cli-server (PHP built-in webserver)
Database
No response
What happened?
v4.2.12
v4.3.0
Steps to Reproduce
just set .env
Expected Output
Same as in the previous version.
Anything else?
No response
The text was updated successfully, but these errors were encountered: