From 028992cf1b2f3a43134d970a8fabaec5bb57db9e Mon Sep 17 00:00:00 2001 From: Daniele Alessandri Date: Fri, 17 Jun 2016 14:13:02 +0200 Subject: [PATCH] Remove useless method. --- src/Connection/Parameters.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/Connection/Parameters.php b/src/Connection/Parameters.php index 2cb07405..29770476 100644 --- a/src/Connection/Parameters.php +++ b/src/Connection/Parameters.php @@ -33,7 +33,7 @@ class Parameters implements ParametersInterface */ public function __construct(array $parameters = array()) { - $this->parameters = $this->filter($parameters) + $this->getDefaults(); + $this->parameters = $parameters + $this->getDefaults(); } /** @@ -136,18 +136,6 @@ class Parameters implements ParametersInterface return $this->parameters; } - /** - * Validates and converts each value of the connection parameters array. - * - * @param array $parameters Connection parameters. - * - * @return array - */ - protected function filter(array $parameters) - { - return $parameters ?: array(); - } - /** * {@inheritdoc} */