diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-19 10:05:53 +0200 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-05-19 10:05:53 +0200 |
commit | 893204ef4a286a77289eeafda7291f95789aea42 (patch) | |
tree | e223711a0566c13e977e6ad1a9a31756288f3694 /lib | |
parent | d666725fa783c21235eec79fa6dbe8ba1881fec3 (diff) | |
download | nextcloud-server-893204ef4a286a77289eeafda7291f95789aea42.tar.gz nextcloud-server-893204ef4a286a77289eeafda7291f95789aea42.zip |
Fix broken exception naming
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/Connection.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 7904fab0726..7cdc13a7c6d 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -33,7 +33,7 @@ use Doctrine\Common\EventManager; use OC\DB\QueryBuilder\QueryBuilder; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\IDBConnection; -use OCP\PreconditionNotMetException; +use OCP\PreConditionNotMetException; class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { /** @@ -262,7 +262,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { * @param array $updatePreconditionValues ensure values match preconditions (column name => value) * @return int number of new rows * @throws \Doctrine\DBAL\DBALException - * @throws PreconditionNotMetException + * @throws PreConditionNotMetException */ public function setValues($table, array $keys, array $values, array $updatePreconditionValues = []) { try { @@ -294,7 +294,7 @@ class Connection extends \Doctrine\DBAL\Connection implements IDBConnection { $affected = $updateQb->execute(); if ($affected === 0 && !empty($updatePreconditionValues)) { - throw new PreconditionNotMetException(); + throw new PreConditionNotMetException(); } return 0; |