Skip to content
Snippets Groups Projects
Commit a2fd2202 authored by Elliot Ward's avatar Elliot Ward
Browse files

#3330472: :bug: convert NULL config to empty strings before assigning them to...

parent 366ba755
Branches
Tags 2.0.0-alpha2
1 merge request!9#3330472: 🐛 convert NULL config to empty strings before assigning them to...
......@@ -44,9 +44,9 @@ class JsonApiClient implements JsonApiClientInterface {
protected readonly ClientInterface $httpClient,
protected readonly LoggerChannelInterface $loggerChannel,
ConfigFactoryInterface $configFactory) {
$this->entrypoint = $configFactory->get('jsonapi_reference.settings')->get('endpoint');
$this->username = $configFactory->get('jsonapi_reference.settings')->get('username');
$this->password = $configFactory->get('jsonapi_reference.settings')->get('password');
$this->entrypoint = $configFactory->get('jsonapi_reference.settings')->get('endpoint') ?? '';
$this->username = $configFactory->get('jsonapi_reference.settings')->get('username') ?? '';
$this->password = $configFactory->get('jsonapi_reference.settings')->get('password') ?? '';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment