Skip to content

Commit

Permalink
Fix doc block and remove non-optional parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Oct 22, 2013
1 parent 4e5ede1 commit 363a28f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Cake/Database/ConnectionManager.php
Expand Up @@ -94,8 +94,9 @@ public static function config($key, $config = null) {
* @param string $from The connection to add an alias to.
* @param string $to The alias to create. $from should return when loaded with get().
* @return void
* @throws Cake\Error\MissingDataSourceConfigException When aliasing a connection that does not exist.
*/
public static function alias($from, $to = null) {
public static function alias($from, $to) {
if (empty(static::$_config[$to]) && empty(static::$_config[$from])) {
throw new Error\MissingDatasourceConfigException(
__d('cake_dev', 'Cannot create alias of "%s" as it does not exist.', $from)
Expand Down

0 comments on commit 363a28f

Please sign in to comment.