Skip to content

Commit 535b1a1

Browse files
Remove obsolete phpDoc annotation @throws InvalidArgumentException
The function `arrayval()` no longer throws this exception.
1 parent f59dfc7 commit 535b1a1

3 files changed

Lines changed: 0 additions & 12 deletions

File tree

src/Connection.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,6 @@ public function select(Select $select): PDOStatement
431431
* @param iterable $data Row data in terms of column-value pairs
432432
*
433433
* @return PDOStatement
434-
*
435-
* @throws InvalidArgumentException If data type is invalid
436434
*/
437435
public function insert(string $table, iterable $data): PDOStatement
438436
{
@@ -472,8 +470,6 @@ public function lastInsertId(?string $name = null): false|string
472470
* @param string $operator The operator to combine multiple conditions with, if the condition is in the array format
473471
*
474472
* @return PDOStatement
475-
*
476-
* @throws InvalidArgumentException If data type is invalid
477473
*/
478474
public function update(
479475
string|array $table,

src/Insert.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace ipl\Sql;
44

5-
use InvalidArgumentException;
6-
75
use function ipl\Stdlib\arrayval;
86

97
/**
@@ -118,8 +116,6 @@ public function getValues(): array
118116
* @param iterable $values List of values or associative set of column-value pairs
119117
*
120118
* @return $this
121-
*
122-
* @throws InvalidArgumentException If values type is invalid
123119
*/
124120
public function values(iterable $values): static
125121
{

src/Update.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace ipl\Sql;
44

5-
use InvalidArgumentException;
6-
75
use function ipl\Stdlib\arrayval;
86

97
/**
@@ -75,8 +73,6 @@ public function getSet(): ?array
7573
* @param iterable $set Associative set of column-value pairs
7674
*
7775
* @return $this
78-
*
79-
* @throws InvalidArgumentException If set type is invalid
8076
*/
8177
public function set(iterable $set): static
8278
{

0 commit comments

Comments
 (0)