You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Line with $tempresults[$key]['materia'][] is marked with [EA] Could provoke a PHP Fatal error ([] operator not supported for strings). for no apparent reason. At least if I move this particular assignment to an empty PHP file - such error is not indicated. Adding logic that checks for existence of $tempresults[$key]['materia'] and sets it to [] does not help. Adding Is_array check does not help either.
For reference whole file is here.
Expected behaviour
No error is shown at all, or at least it goes away after adding appropriate check or explicit assignment
Environment details
PhpStorm 2024.1
Build #PS-241.14494.237, built on March 27, 2024
Licensed to simbiat.ru / Dmitry Kustov
Subscription is active until May 11, 2024.
For non-commercial open source development only.
Runtime version: 17.0.10+8-b1207.12 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 5120M
Cores: 16
Registry:
debugger.new.tool.window.layout=true
run.processes.with.pty=TRUE
ide.experimental.ui=true
Non-Bundled Plugins:
com.jetbrains.space (241.14494.150)
com.intellij.ml.llm (241.14494.240)
com.kalessil.phpStorm.phpInspectionsEA (5.0.0.0)
The text was updated successfully, but these errors were encountered:
Current behaviour
In below function
Line with
$tempresults[$key]['materia'][]
is marked with[EA] Could provoke a PHP Fatal error ([] operator not supported for strings).
for no apparent reason. At least if I move this particular assignment to an empty PHP file - such error is not indicated. Adding logic that checks for existence of$tempresults[$key]['materia']
and sets it to[]
does not help. AddingIs_array
check does not help either.For reference whole file is here.
Expected behaviour
No error is shown at all, or at least it goes away after adding appropriate check or explicit assignment
Environment details
The text was updated successfully, but these errors were encountered: