From: Aaron Schulz Date: Sat, 24 Mar 2018 12:16:29 +0000 (-0700) Subject: rdbms: add "use" statement for UnexpectedValueExcetion in Database X-Git-Tag: 1.31.0-rc.0~276^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=c86a6fa586d7e305a546d1d3e624f5cc23d85b1e rdbms: add "use" statement for UnexpectedValueExcetion in Database Change-Id: I90faa511b144f06b06f99828630792d3de21f262 --- diff --git a/includes/libs/rdbms/database/Database.php b/includes/libs/rdbms/database/Database.php index 5f7215277b..5f2bbdbc1a 100644 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@ -35,6 +35,7 @@ use BagOStuff; use HashBagOStuff; use LogicException; use InvalidArgumentException; +use UnexpectedValueException; use Exception; use RuntimeException; @@ -693,7 +694,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware public function setFlag( $flag, $remember = self::REMEMBER_NOTHING ) { if ( ( $flag & self::DBO_IGNORE ) ) { - throw new \UnexpectedValueException( "Modifying DBO_IGNORE is not allowed." ); + throw new UnexpectedValueException( "Modifying DBO_IGNORE is not allowed." ); } if ( $remember === self::REMEMBER_PRIOR ) { @@ -704,7 +705,7 @@ abstract class Database implements IDatabase, IMaintainableDatabase, LoggerAware public function clearFlag( $flag, $remember = self::REMEMBER_NOTHING ) { if ( ( $flag & self::DBO_IGNORE ) ) { - throw new \UnexpectedValueException( "Modifying DBO_IGNORE is not allowed." ); + throw new UnexpectedValueException( "Modifying DBO_IGNORE is not allowed." ); } if ( $remember === self::REMEMBER_PRIOR ) {