Skip to content

Commit

Permalink
Merge pull request #4699 from morozov/psalm-4.8.1
Browse files Browse the repository at this point in the history
Update Psalm to 4.8.1
  • Loading branch information
morozov authored Jul 3, 2021
2 parents 378324a + 794f71e commit ce15957
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"squizlabs/php_codesniffer": "3.6.0",
"symfony/cache": "^4.4",
"symfony/console": "^2.0.5|^3.0|^4.0|^5.0",
"vimeo/psalm": "4.6.4"
"vimeo/psalm": "4.8.1"
},
"suggest": {
"symfony/console": "For helpful console commands such as SQL execution and import of files."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ public function insert($table, array $data, array $types = [])
/**
* {@inheritDoc}
*/
public function exec($statement)
public function exec($sql)
{
$this->ensureConnectedToPrimary();

return parent::exec($statement);
return parent::exec($sql);
}

/**
Expand Down Expand Up @@ -433,10 +433,10 @@ public function query()
/**
* {@inheritDoc}
*/
public function prepare($statement)
public function prepare($sql)
{
$this->ensureConnectedToPrimary();

return parent::prepare($statement);
return parent::prepare($sql);
}
}
10 changes: 5 additions & 5 deletions lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -1411,13 +1411,13 @@ public function getWriteLockSQL()
/**
* Returns the SQL snippet to drop an existing database.
*
* @param string $database The name of the database that should be dropped.
* @param string $name The name of the database that should be dropped.
*
* @return string
*/
public function getDropDatabaseSQL($database)
public function getDropDatabaseSQL($name)
{
return 'DROP DATABASE ' . $database;
return 'DROP DATABASE ' . $name;
}

/**
Expand Down Expand Up @@ -2990,13 +2990,13 @@ public function getSequenceNextValSQL($sequence)
/**
* Returns the SQL to create a new database.
*
* @param string $database The name of the database that should be created.
* @param string $name The name of the database that should be created.
*
* @return string
*
* @throws Exception If not supported on this platform.
*/
public function getCreateDatabaseSQL($database)
public function getCreateDatabaseSQL($name)
{
throw Exception::notSupported(__METHOD__);
}
Expand Down
8 changes: 4 additions & 4 deletions lib/Doctrine/DBAL/Platforms/DB2Platform.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,17 +414,17 @@ public function getDropViewSQL($name)
/**
* {@inheritDoc}
*/
public function getCreateDatabaseSQL($database)
public function getCreateDatabaseSQL($name)
{
return 'CREATE DATABASE ' . $database;
return 'CREATE DATABASE ' . $name;
}

/**
* {@inheritDoc}
*/
public function getDropDatabaseSQL($database)
public function getDropDatabaseSQL($name)
{
return 'DROP DATABASE ' . $database;
return 'DROP DATABASE ' . $name;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Doctrine/DBAL/Platforms/OraclePlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,9 +785,9 @@ public function getForeignKeyReferentialActionSQL($action)
/**
* {@inheritDoc}
*/
public function getDropDatabaseSQL($database)
public function getDropDatabaseSQL($name)
{
return 'DROP USER ' . $database . ' CASCADE';
return 'DROP USER ' . $name . ' CASCADE';
}

/**
Expand Down
12 changes: 6 additions & 6 deletions lib/Doctrine/DBAL/Platforms/SQLAnywherePlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,11 @@ public function getCreateConstraintSQL(Constraint $constraint, $table)
/**
* {@inheritdoc}
*/
public function getCreateDatabaseSQL($database)
public function getCreateDatabaseSQL($name)
{
$database = new Identifier($database);
$name = new Identifier($name);

return "CREATE DATABASE '" . $database->getName() . "'";
return "CREATE DATABASE '" . $name->getName() . "'";
}

/**
Expand Down Expand Up @@ -540,11 +540,11 @@ public function getDefaultTransactionIsolationLevel()
/**
* {@inheritdoc}
*/
public function getDropDatabaseSQL($database)
public function getDropDatabaseSQL($name)
{
$database = new Identifier($database);
$name = new Identifier($name);

return "DROP DATABASE '" . $database->getName() . "'";
return "DROP DATABASE '" . $name->getName() . "'";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function executeQuery($sql, array $params = [], $types = [], ?QueryCacheP
/**
* {@inheritdoc}
*/
public function prepare($statement)
public function prepare($sql)
{
return new Statement(parent::prepare($statement));
return new Statement(parent::prepare($sql));
}

/**
Expand Down

0 comments on commit ce15957

Please sign in to comment.