Currently upgrading a project from CakePHP2 to CakePHP4 and I received the error Config file "tmi.php" did not return an array
.
This is how I'm importing it into bootstrap.php
:
try {
Configure::config('default', new PhpConfig());
Configure::load('app', 'default', false);
Configure::load('tmi', 'default');
} catch (\Exception $e) {
exit($e->getMessage() . "\n");
}
This is an example of what the file contains:
Configure::write('weburl', 'https://weburl.net/');
Configure::write(
'S3',
[
"bucket" => "bucketName",
"key" => "bucketKey",
"secret" => "bucketSecret",
]
);