-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
Fix PHPStan errors #20634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PHPStan errors #20634
Conversation
mspirkov
commented
Oct 22, 2025
| Q | A |
|---|---|
| Is bugfix? | ✔️ |
| New feature? | ❌ |
| Breaks BC? | ❌ |
| Fixed issues |
| public static function validateData(array $data, $rules = []) | ||
| { | ||
| /** @var self $model */ | ||
| /** @var static $model */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public $link; | ||
| /** | ||
| * @var array|object the query associated with the junction table. Please call [[via()]] | ||
| * @var array|object|null the query associated with the junction table. Please call [[via()]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| public $scale; | ||
| /** | ||
| * @var bool whether this column is a primary key | ||
| * @var bool|null whether this column is a primary key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | ||
|
|
||
| if ($this->expressionBuilders[$className] === __CLASS__) { | ||
| /** @phpstan-var $this&ExpressionBuilderInterface */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| /** | ||
| * Returns whether the longest common prefix equals to the SQL code of the same length at the current offset. | ||
| * @param string[] $with strings to be tested. | ||
| * @param array $with strings to be tested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| * @param ArrayExpression $expression | ||
| * @param mixed $value | ||
| * @return JsonExpression | ||
| * @return mixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm





