phpinspectionsea
phpinspectionsea copied to clipboard
[False positive] JsonEncodingApiUsageInspection
Subject | Details |
---|---|
Plugin | Php Inspections (EA Ultimate), 2021.5 |
Language level | PHP 8.0 |
Current behaviour
json_decode with named parameter, trigger JsonEncodingApiUsageInspection
Expected behaviour
if parameter flags include JSON_THROW_ON_ERROR, no JsonEncodingApiUsageInspection warning
Environment details
Information from Help - About dialog PhpStorm 2022.1 Build #PS-221.5080.224, built on April 13, 2022 Licensed to [me] Subscription is active until April 24, 2022. Runtime version: 11.0.14.1+1-b2043.25 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2010M Cores: 8 Registry: run.processes.with.pty=TRUE
Non-Bundled Plugins: com.kalessil.phpStorm.phpInspectionsUltimate-mp (2021.5) de.espend.idea.php.toolbox (6.1.0) de.espend.idea.php.annotation (8.2.0) fr.adrienbrault.idea.symfony2plugin (2022.1.221) NEON support (0.5.1) com.jetbrains.plugins.jade (221.5080.169) izhangzhihao.rainbow.brackets (6.21) ru.adelf.idea.dotenv (2022.1) aws.toolkit (1.42-221)
Duplicated of https://github.com/kalessil/phpinspectionsea/issues/1725
And of #1639 and #1807