phptools-docs
phptools-docs copied to clipboard
Undefined constant not detected
Here:
the constant DIR is not defined anywhere. And yet it is not highlighted as an error/warning.
If I roll over it:
but that's not a function call. If you run the code in PHP it will emit the "undefined constant" error/warning.
I had several other occurrences of the undefined constant in my code, and they used to be detected as errors as expected. Unfortunately I removed all the other occurrences already, so I cannot tell whether there's something specific about this usage that causes it to not be recognized as it should, or if something has happened and the behavior has changed globally.
Actually I see that the extension got updated just a few hours ago.
Thanks. Maybe just the tooltip is inaccurate; I'll check what's happening.