Sergei Predvoditelev

Results 264 comments of Sergei Predvoditelev

"overridden properties must not be looser than the parent" - i agree, but see https://psalm.dev/r/b667f563eb : Property `A::$var` is `non-empty-string`. Why Psalm think that `B::$var` is `string`? Shouldn't he understand...

@danog I'll try to explain my pain again =) **Case with method parameter** ```php class A { /** * @param non-empty-string $var */ public function test(string $var): void { echo...

> This doesn't have justification but I'm assuming some linter might not like `yes`/`no` for booleans. We however do support these values and intentionally show that they work in the...

I confirm this bug :(

Param `site_0` also will be added, so result SQL will be OK. ```php $expr = new Expression("(site_id = :site)", ['site' => 1]); $command = new Query($db) ->select($expr) ->from('users') ->groupBy($expr) ->createCommand();...

```php $expr = new Expression("(CASE WHEN site_id > :n THEN 1 WHEN site_id = 2 THEN 2 ELSE 3 END)", ['n' => 1]); $rows = new Query($this->db()) ->select($expr) ->from('users') ->groupBy($expr)...

> PDO doesn't allow same-named parameters to be reused if prepared statements emulation mode is in effect, which is the default. PDO doesn't allow same-named parameters if prepared statements emulation...

I mean something like `DB param value don't support "DateTimeInterface".` `Fatal error: Uncaught Error: Object of class DateTime could not be converted to string` looks like bug in Yii DB....