From fe69f588347b72d126cd940b3405b6b44d1ca65e Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Wed, 18 Sep 2024 08:01:06 +0200 Subject: [PATCH] Add `is_scalar`, `sizeof`, `ini_get` and `sprintf` to list of compiled/optimized functions (#1818) --- .../inspectors/apiUsage/UnqualifiedReferenceInspector.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/apiUsage/UnqualifiedReferenceInspector.java b/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/apiUsage/UnqualifiedReferenceInspector.java index 1c908b5b2c..056d5e3f82 100644 --- a/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/apiUsage/UnqualifiedReferenceInspector.java +++ b/src/main/java/com/kalessil/phpStorm/phpInspectionsEA/inspectors/apiUsage/UnqualifiedReferenceInspector.java @@ -111,6 +111,10 @@ public class UnqualifiedReferenceInspector extends BasePhpInspection { advancedOpcode.add("constant"); advancedOpcode.add("define"); advancedOpcode.add("array_key_exists"); + advancedOpcode.add("is_scalar"); + advancedOpcode.add("sizeof"); + advancedOpcode.add("ini_get"); + advancedOpcode.add("sprintf"); } final private static Condition PARENT_NAMESPACE = new Condition() {