Skip to content
Permalink
Browse files

Fix doc block and remove non-optional parameter.

  • Loading branch information...
markstory committed Oct 22, 2013
1 parent 4e5ede1 commit 363a28ffc643fc8e2b6b8a889abc55b2532ffea0
Showing with 2 additions and 1 deletion.
  1. +2 −1 Cake/Database/ConnectionManager.php
@@ -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)

0 comments on commit 363a28f

Please sign in to comment.
You can’t perform that action at this time.