"Dynamic include expression" warning when using a constant for the file path

I'm not sure why I'm getting this warning when there is no warning by just using the string literal instead of using the constant.
Is this a bug? Am I doing something stupid I'm not seeing here or should i just disable this inspection?
About:
PhpStorm 2020.1.3
Build #PS-201.8538.41, built on July 8, 2020
Runtime version: 11.0.7+10-b765.64 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.4.0-42-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1939M
Cores: 16
Registry: run.processes.with.pty=TRUE
Current Desktop: X-Cinnamon
请先登录再写评论。
Actually, it is not a bug but intended behaviour.
In fact, PhpStorm does not check variable or constant contents in "include" or "require" and just warns you about that.
Unfortunately, there is no way to distinguish "not analysed" from "not resolved", so you may suppress the inspection only for a specific statement if you do not want to disable it totally. Just add the following line before the statement:
/** @noinspection PhpIncludeInspection */
Also, please feel free to vote:
https://youtrack.jetbrains.com/issue/WI-31909