Field names are not checked inside `match` arms
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start by reproducing the PHP example with QueryBuilder inside a match arm and compare it with the switch example, since no source file or test is named. Done means the nonexistent field in the match arm produces the same "no field or association named nonexistent" error as the switch arm.
由索引模型根据 Issue 内容生成。
描述
I noticed fields are not checked inside match and yield no error.
match (true) {
true => $qb->orderBy('p.nonexistent', 'ASC'),
};
The same with switch correctly yields an error no field or association named nonexistent.
switch (true) {
case true:
$qb->orderBy('p.nonexistent', 'ASC');
break;
}
Is this because of Do not pass QueryBuilder to methods or is it something that can be solved?
- 主要语言
- PHP
- 星标
- 683
- 派生
- 129
- 平均合并
- 13 小时 6 分钟
- 30 天内合并 PR
- 14
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
phpstan/phpstan-doctrine 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 85/100
phpstan/phpstan-doctrine#816 ·
维护者通常 1 天内回复
-
EntityRepository.stub missing Selectable interface可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
phpstan/phpstan-doctrine#785 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 55/100
phpstan/phpstan-doctrine#822 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 1-2 天 新手友好度 48/100
phpstan/phpstan-doctrine#805 ·
维护者通常 1 天内回复
-
ORM 3.7 SortDirection support in orderBy clause可能已有人在做 @whataboutpereira 于 48 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 65/100
phpstan/phpstan-doctrine#792 · 2 个 reaction ·
维护者通常 1 天内回复
查看 phpstan/phpstan-doctrine 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 63/100
phpstan/phpstan-phpunit#361 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
HE-Arc/le-panier-du-coin#49 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
15.0
难度 2/5 1-3 小时 新手友好度 65/100
-
难度 2/5 1-3 小时 新手友好度 78/100
woocommerce/woocommerce-subscriptions-importer-exporter#298 ·