phptools-docs icon indicating copy to clipboard operation
phptools-docs copied to clipboard

Undefined constant not detected

Open php4fan opened this issue 1 year ago • 1 comments

Here:

image

the constant DIR is not defined anywhere. And yet it is not highlighted as an error/warning.

If I roll over it: image

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.

php4fan avatar Feb 21 '24 19:02 php4fan

Thanks. Maybe just the tooltip is inaccurate; I'll check what's happening.

jakubmisek avatar Feb 22 '24 15:02 jakubmisek