Browse Source

Set config argument default value to null

Jose Diaz-Gonzalez 11 years ago
parent
commit
ddcfd3e628
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Datasource/ConnectionManager.php

+ 1 - 1
src/Datasource/ConnectionManager.php

@@ -83,7 +83,7 @@ class ConnectionManager {
  * @param array $config An array with a `url` key mapping to a string dsn
  * @return mixed null when adding configuration and an array of configuration data when reading.
  */
-	public static function parseDsn($config) {
+	public static function parseDsn($config = null) {
 		$config = static::_parseDsn($config);
 
 		if (isset($config['user'])) {