Skip to content

Commit 81361e3

Browse files
committed
- Fixed type hint of Kir\MySQL\Builder\Update::set(..., $value)
- Fixed type hint of `Kir\MySQL\Builder\Traits\WhereBuilder::where` and clarify that $expression could be an object
1 parent c4e1833 commit 81361e3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rkr/php-mysql-query-builder",
3-
"description": "Easy to use query builder for PHP7.0+/PDO",
3+
"description": "Easy to use query builder for PHP7.1+/PDO",
44
"license": "MIT",
55
"type": "library",
66
"authors": [{

src/Builder/Traits/WhereBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait WhereBuilder {
1212
private $where = [];
1313

1414
/**
15-
* @param string|array|OptionalExpression $expression
15+
* @param string|array|object|OptionalExpression $expression
1616
* @param array<int, mixed> $args
1717
* @return $this
1818
*/

src/Builder/Update.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function table($alias, $table = null) {
3535

3636
/**
3737
* @param string $fieldName
38-
* @param string $value
38+
* @param mixed $value
3939
* @return $this
4040
*/
4141
public function set($fieldName, $value) {

0 commit comments

Comments
 (0)