mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Use short array declaration
This commit is contained in:
@@ -32,7 +32,7 @@ class connection_pdo extends connection_abstract implements connection_interface
|
||||
*
|
||||
* @return connection_pdo
|
||||
*/
|
||||
public function __construct($name, $hostname, $port, $user, $passwd, $dbname = false, $options = array(), $debug = false)
|
||||
public function __construct($name, $hostname, $port, $user, $passwd, $dbname = false, $options = [], $debug = false)
|
||||
{
|
||||
$this->debug = $debug;
|
||||
$this->name = $name;
|
||||
@@ -65,7 +65,7 @@ class connection_pdo extends connection_abstract implements connection_interface
|
||||
* @param type $driver_options
|
||||
* @return PDOStatement
|
||||
*/
|
||||
public function prepare($statement, $driver_options = array())
|
||||
public function prepare($statement, $driver_options = [])
|
||||
{
|
||||
if ($this->debug) {
|
||||
return new connection_pdoStatementDebugger(parent::prepare($statement, $driver_options));
|
||||
|
Reference in New Issue
Block a user