Skip to content

Commit 05aa911

Browse files
committed
Connection: fifth argument is deprecated
1 parent d9fd67a commit 05aa911

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Database/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class Connection
4444
public function __construct($dsn, $user = NULL, $password = NULL, array $options = NULL)
4545
{
4646
if (func_num_args() > 4) { // compatibility
47+
trigger_error(__METHOD__ . " fifth argument is deprecated, use \$options['driverClass'].", E_USER_DEPRECATED);
4748
$options['driverClass'] = func_get_arg(4);
4849
}
4950
$this->params = [$dsn, $user, $password];

0 commit comments

Comments
 (0)