Closed
Description
I don't know why this behavior is caused but sometimes the variables saved in the codeigniter .env file return null
I am trying to test a class and it stopped working because it started to return null, the strange thing is that in other parts of the application I call the variable in the same way and there is no problem
for example:
my class:
private $refreshSecret;
public function __construct(Academy $configs){
$this->refreshSecret = env('jwt.secretRefresh');
}
my .env file
jwt.secretRefresh = 'super_secret';
When I run my test it fails because the environment variable returns null, I had long ago noticed that error in another project where I used the env ('CI_ENVIRONMENT')
which in the same way did not return the configured environment.
I hope someone knows something about this problem :(
Metadata
Metadata
Assignees
Labels
No labels
Activity