in2code-de / in2publish_core

in2publish Community Version
https://www.in2code.de/produkte/content-publisher/
GNU General Public License v3.0
40 stars 23 forks source link

[BUG] buildForeignDatabaseConnection only allows Connection as return type #59

Closed paysafewebdev closed 5 years ago

paysafewebdev commented 5 years ago

The function DatabaseUtility->buildForeignDatabaseConnection has return type Connection only and it breaks if the configuration of foreign is configured incorrectly instead of showing in Tests: The foreign database is inaccessible. We should allow NULL as well as a possibly return value