Closed ribicb closed 1 year ago
I'll have a look at this - I don't think it'll be fixed by isset
from the feel of this because it indicates there's a configuration error where it's expecting to get the right API key/secret handlers/objects
This happened during testing, so there was no configuration section for vonage and it was tryig to return null which triggered the error.
The function return type is bool, so either the return type is wrong or it should be isset() or ! empty()
And thanx for looking into this quickly
:heavy_check_mark: This issue was automatically closed by Mend because the errors have been resolved.
I am seeing this error in logs:
[2023-02-24 14:36:39] local.ERROR: Vonage\Laravel\VonageServiceProvider::vonageConfigHas(): Return value must be of type bool, null returned
Function VonageServiceProvider::vonageConfigHas() is marked as returning bool but returns whatever is in $config array:
I assume fix would be to use
return isset($this->config[$key]);
instead of just
return ($this->config[$key]);
At last line