Fix #20515: Fix @param annotations in BetweenColumnsCondition, InCondition and LikeCondition

This commit is contained in:
Maksim Spirkov
2025-09-08 15:08:53 +05:00
committed by GitHub
parent 04d0c0dd5f
commit 70eb2c1c15
4 changed files with 5 additions and 4 deletions

View File

@ -26,6 +26,7 @@ Yii Framework 2 Change Log
- Bug #20508: Fix PHPDoc, add PHPStan/Psalm annotations for `yii\web\CookieCollection::getIterator`. Add missing `@property` annotation in `yii\base\Model` (max-s-lab)
- Bug #20513: Fix code examples in PHPDoc (max-s-lab)
- Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab)
- Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (max-s-lab)
- Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab)

View File

@ -62,7 +62,7 @@ class BetweenColumnsCondition implements ConditionInterface
/**
* Creates a condition with the `BETWEEN` operator.
*
* @param mixed the value to compare against
* @param mixed $value the value to compare against
* @param string $operator the operator to use (e.g. `BETWEEN` or `NOT BETWEEN`)
* @param string|ExpressionInterface $intervalStartColumn the column name or expression that is a beginning of the interval
* @param string|ExpressionInterface $intervalEndColumn the column name or expression that is an end of the interval

View File

@ -39,10 +39,10 @@ class InCondition implements ConditionInterface
/**
* SimpleCondition constructor
*
* @param string|string[] the column name. If it is an array, a composite `IN` condition
* @param string|string[] $column the column name. If it is an array, a composite `IN` condition
* will be generated.
* @param string $operator the operator to use (e.g. `IN` or `NOT IN`)
* @param array an array of values that [[column]] value should be among. If it is an empty array the generated
* @param array $values an array of values that [[column]] value should be among. If it is an empty array the generated
* expression will be a `false` value if [[operator]] is `IN` and empty if operator is `NOT IN`.
*/
public function __construct($column, $operator, $values)

View File

@ -40,7 +40,7 @@ class LikeCondition extends SimpleCondition
/**
* This method allows to specify how to escape special characters in the value(s).
*
* @param array|null|false an array of mappings from the special characters to their escaped counterparts.
* @param array|null|false $escapingReplacements an array of mappings from the special characters to their escaped counterparts.
* You may use `false` to indicate the values are already escaped and no escape should be applied,
* or either `null` or empty array if escaping is condition builder responsibility.
* Note that when using an escape mapping (or the third operand is not provided),