We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c94dee commit b83f478Copy full SHA for b83f478
csharp/ql/lib/semmle/code/csharp/commons/Strings.qll
@@ -3,6 +3,7 @@
3
*/
4
5
import csharp
6
+private import semmle.code.csharp.commons.Collections
7
private import semmle.code.csharp.frameworks.Format
8
private import semmle.code.csharp.frameworks.System
9
private import semmle.code.csharp.frameworks.system.Text
@@ -33,7 +34,7 @@ class ImplicitToStringExpr extends Expr {
33
34
or
35
p instanceof StringFormatItemParameter and
36
not p.getType() =
- any(ArrayType at |
37
+ any(ParamsCollectionType at |
38
at.getElementType() instanceof ObjectType and
39
this.getType().isImplicitlyConvertibleTo(at)
40
)
0 commit comments