Skip to content

Commit 70eb2c1

Browse files
authored
Fix #20515: Fix @param annotations in BetweenColumnsCondition, InCondition and LikeCondition
1 parent 04d0c0d commit 70eb2c1

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

framework/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Yii Framework 2 Change Log
2626
- Bug #20508: Fix PHPDoc, add PHPStan/Psalm annotations for `yii\web\CookieCollection::getIterator`. Add missing `@property` annotation in `yii\base\Model` (max-s-lab)
2727
- Bug #20513: Fix code examples in PHPDoc (max-s-lab)
2828
- Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab)
29+
- Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (max-s-lab)
2930
- Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab)
3031

3132

framework/db/conditions/BetweenColumnsCondition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class BetweenColumnsCondition implements ConditionInterface
6262
/**
6363
* Creates a condition with the `BETWEEN` operator.
6464
*
65-
* @param mixed the value to compare against
65+
* @param mixed $value the value to compare against
6666
* @param string $operator the operator to use (e.g. `BETWEEN` or `NOT BETWEEN`)
6767
* @param string|ExpressionInterface $intervalStartColumn the column name or expression that is a beginning of the interval
6868
* @param string|ExpressionInterface $intervalEndColumn the column name or expression that is an end of the interval

framework/db/conditions/InCondition.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ class InCondition implements ConditionInterface
3939
/**
4040
* SimpleCondition constructor
4141
*
42-
* @param string|string[] the column name. If it is an array, a composite `IN` condition
42+
* @param string|string[] $column the column name. If it is an array, a composite `IN` condition
4343
* will be generated.
4444
* @param string $operator the operator to use (e.g. `IN` or `NOT IN`)
45-
* @param array an array of values that [[column]] value should be among. If it is an empty array the generated
45+
* @param array $values an array of values that [[column]] value should be among. If it is an empty array the generated
4646
* expression will be a `false` value if [[operator]] is `IN` and empty if operator is `NOT IN`.
4747
*/
4848
public function __construct($column, $operator, $values)

framework/db/conditions/LikeCondition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct($column, $operator, $value)
4040
/**
4141
* This method allows to specify how to escape special characters in the value(s).
4242
*
43-
* @param array|null|false an array of mappings from the special characters to their escaped counterparts.
43+
* @param array|null|false $escapingReplacements an array of mappings from the special characters to their escaped counterparts.
4444
* You may use `false` to indicate the values are already escaped and no escape should be applied,
4545
* or either `null` or empty array if escaping is condition builder responsibility.
4646
* Note that when using an escape mapping (or the third operand is not provided),

0 commit comments

Comments
 (0)