Hi, I use VS Code with Intelephense extension for php. When using $this in the php block of pages I get this php hint error:
Cannot use ‘$this’ in non-object context.
The code works, but I’m curious if there’s a way to avoid the IDE to scream about it. Any clue?