Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1c44097

Browse files
DikoIbragimovTigrov
andauthoredJun 20, 2025··
Replace InvalidArgumentException to native InvalidArgumentException (#332)
Co-authored-by: Sergei Tigrov <rrr-r@ya.ru>
1 parent acaa766 commit 1c44097

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed
 

‎CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 2.0.0 under development
44

5+
- Chg #332: Use `\InvalidArgumentException` instead of `Yiisoft\Db\Exception\InvalidArgumentException` (@DikoIbragimov)
56
- Enh #268: Rename `batchInsert()` to `insertBatch()` in `DMLQueryBuilder` and change parameters
67
from `$table, $columns, $rows` to `$table, $rows, $columns = []` (@Tigrov)
78
- Enh #260: Support `Traversable` values for `DMLQueryBuilder::batchInsert()` method with empty columns (@Tigrov)

‎src/Builder/InConditionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Yiisoft\Db\Oracle\Builder;
66

77
use Yiisoft\Db\Exception\Exception;
8-
use Yiisoft\Db\Exception\InvalidArgumentException;
8+
use InvalidArgumentException;
99
use Yiisoft\Db\Exception\InvalidConfigException;
1010
use Yiisoft\Db\Exception\NotSupportedException;
1111
use Yiisoft\Db\Expression\ExpressionInterface;

‎src/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Yiisoft\Db\Driver\Pdo\AbstractPdoConnection;
1010
use Yiisoft\Db\Driver\Pdo\PdoCommandInterface;
1111
use Yiisoft\Db\Exception\Exception;
12-
use Yiisoft\Db\Exception\InvalidArgumentException;
12+
use InvalidArgumentException;
1313
use Yiisoft\Db\Exception\InvalidCallException;
1414
use Yiisoft\Db\Exception\InvalidConfigException;
1515
use Yiisoft\Db\Oracle\Column\ColumnFactory;

‎src/DMLQueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Yiisoft\Db\Oracle;
66

7-
use Yiisoft\Db\Exception\InvalidArgumentException;
7+
use InvalidArgumentException;
88
use Yiisoft\Db\Exception\NotSupportedException;
99
use Yiisoft\Db\Expression\Expression;
1010
use Yiisoft\Db\Query\QueryInterface;

‎tests/PdoConnectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
use Throwable;
88
use Yiisoft\Db\Exception\Exception;
9-
use Yiisoft\Db\Exception\InvalidArgumentException;
9+
use InvalidArgumentException;
1010
use Yiisoft\Db\Exception\InvalidCallException;
1111
use Yiisoft\Db\Exception\InvalidConfigException;
1212
use Yiisoft\Db\Oracle\ServerInfo;

‎tests/QueryBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use PHPUnit\Framework\Attributes\DataProvider;
88
use PHPUnit\Framework\Attributes\DataProviderExternal;
99
use Yiisoft\Db\Exception\Exception;
10-
use Yiisoft\Db\Exception\InvalidArgumentException;
10+
use InvalidArgumentException;
1111
use Yiisoft\Db\Exception\NotSupportedException;
1212
use Yiisoft\Db\Expression\ExpressionInterface;
1313
use Yiisoft\Db\Oracle\Tests\Provider\QueryBuilderProvider;

0 commit comments

Comments
 (0)
Please sign in to comment.