File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 "require" : {
99 "php" : " >=8.2" ,
1010 "ext-pdo" : " *" ,
11- "ipl/stdlib" : " >=0.12 .0"
11+ "ipl/stdlib" : " >=0.15 .0"
1212 },
1313 "require-dev" : {
1414 "ipl/stdlib" : " dev-main"
Original file line number Diff line number Diff line change @@ -429,8 +429,6 @@ public function select(Select $select): PDOStatement
429429 * @param iterable $data Row data in terms of column-value pairs
430430 *
431431 * @return PDOStatement
432- *
433- * @throws InvalidArgumentException If data type is invalid
434432 */
435433 public function insert (string $ table , iterable $ data ): PDOStatement
436434 {
@@ -470,8 +468,6 @@ public function lastInsertId(?string $name = null): false|string
470468 * @param string $operator The operator to combine multiple conditions with, if the condition is in the array format
471469 *
472470 * @return PDOStatement
473- *
474- * @throws InvalidArgumentException If data type is invalid
475471 */
476472 public function update (
477473 string |array $ table ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function getLimit(): ?int
7575 return $ this ->select ->getLimit ();
7676 }
7777
78- public function limit ($ limit )
78+ public function limit (? int $ limit ): static
7979 {
8080 $ this ->select ->limit ($ limit );
8181
@@ -92,7 +92,7 @@ public function getOffset(): ?int
9292 return $ this ->select ->getOffset ();
9393 }
9494
95- public function offset ($ offset )
95+ public function offset (? int $ offset ): static
9696 {
9797 $ this ->select ->offset ($ offset );
9898
Original file line number Diff line number Diff line change 77
88class In extends Filter \Condition
99{
10- use InAndNotInUtils;
11-
1210 /**
1311 * Create a new sql IN condition
1412 *
@@ -17,8 +15,6 @@ class In extends Filter\Condition
1715 */
1816 public function __construct (string |array $ column , Select $ select )
1917 {
20- $ this
21- ->setColumn ($ column )
22- ->setValue ($ select );
18+ parent ::__construct ($ column , $ select );
2319 }
2420}
Load diff This file was deleted.
Original file line number Diff line number Diff line change 77
88class NotIn extends Filter \Condition
99{
10- use InAndNotInUtils;
11-
1210 /**
1311 * Create a new sql NOT IN condition
1412 *
@@ -17,8 +15,6 @@ class NotIn extends Filter\Condition
1715 */
1816 public function __construct (string |array $ column , Select $ select )
1917 {
20- $ this
21- ->setColumn ($ column )
22- ->setValue ($ select );
18+ parent ::__construct ($ column , $ select );
2319 }
2420}
Original file line number Diff line number Diff line change 22
33namespace ipl \Sql ;
44
5- use InvalidArgumentException ;
6-
75use 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 {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ public function getLimit(): ?int
3535 return $ this ->limit ;
3636 }
3737
38- public function limit ($ limit )
38+ public function limit (? int $ limit ): static
3939 {
4040 $ this ->limit = $ limit < 0 ? null : $ limit ;
4141
@@ -59,7 +59,7 @@ public function getOffset(): ?int
5959 return $ this ->offset ;
6060 }
6161
62- public function offset ($ offset )
62+ public function offset (? int $ offset ): static
6363 {
6464 $ this ->offset = $ offset <= 0 ? null : $ offset ;
6565
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public function getLimit(): ?int;
2828 *
2929 * @return $this
3030 */
31- public function limit ($ limit );
31+ public function limit (? int $ limit ): static ;
3232
3333 /**
3434 * Reset the limit
@@ -59,7 +59,7 @@ public function getOffset(): ?int;
5959 *
6060 * @return $this
6161 */
62- public function offset ($ offset );
62+ public function offset (? int $ offset ): static ;
6363
6464 /**
6565 * Reset the offset
Original file line number Diff line number Diff line change 22
33namespace ipl \Sql ;
44
5- use InvalidArgumentException ;
6-
75use 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 {
You can’t perform that action at this time.
0 commit comments