You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't expect this code would throw a ConfigurationException: Configuration parameter project_mattermost_hook does not exist error - but just return the null default-value which was passed in.
get checks if the value is null if yes, it throws an exception. I had the same problem already with #2525
Easiest fix is to return false. Hope this works in your case as well. If it doesn't work, lets think about how to change it (your code or deployer), but:
I think it is good to throw an exception, so it is easier to find undefined configurations.
Feel free to comment, if needed I'll reopen. Good luck!
I would expect deployer to use e.g. https://www.php.net/func_num_args or similar to check whether there was actually a default given from the outside or whether there wasn't
I didn't expect this code would throw a
ConfigurationException: Configuration parameter project_mattermost_hook does not exist
error - but just return thenull
default-value which was passed in.The text was updated successfully, but these errors were encountered: