Closed EtienneBruines closed 3 years ago
According to https://github.com/phpstan/phpstan/issues/670#issuecomment-349265176 the developer won't be supporting this @inheritdoc
usage by Yii though.
We currently ignore that error in our projects. You are always welcome to submit a PR supporting this :)
This seems to be working with latest master
version. Could you verify?
This might just be an awkward bug of phpstan itself, but I thought I'd mention it here first.
Here it complains that the
where
method wants anarray
and never astring
. This is because the original\yii\db\Query
class includes{@inheritdoc}
for thewhere
method, and the original\yii\db\QueryInterface
interface only allows forarray
.That the
\yii\db\Query
class "overrided" the parameter (to allow alsostring
andExpressionInterface
) does not matter to phpstan.Should this be worked around in
phpstan-yii2
or should this thing be fixed inphpstan
itself?