~reykjalin/public-inbox

1

Intelephense Undefined Property Errors Missing

Graceson Aufderheide <gaufde@gmail.com>
Details
Message ID
<07A673B3-12E5-4089-B797-88855F0826C0@gmail.com>
DKIM signature
missing
Download raw message
Hello,

Is there a way to turn on undefined property errors in Intelephense for Nova? For example, if I have the following PHP code, I would expect two errors. One for an undefined property $foo and one for undefined variable $bar. However, I only receive the undefined variable issue in Nova. It looks like I would need to set intelephense.diagnostics.undefinedProperties = true, but I don’t know how to do that with this extension.


<?php

class Test
{
    public function property()
    {
        return $this->foo;
    }

    public function variable()
    {
        return $bar;
    }
}


Thanks,
Graceson
Details
Message ID
<00d91791-417b-a403-ca18-a9c76aff3815@thorlaksson.com>
In-Reply-To
<07A673B3-12E5-4089-B797-88855F0826C0@gmail.com> (view parent)
DKIM signature
missing
Download raw message
Hi! Thank you for bringing this to my attention, and sorry for the late 
reply!

> It looks like I would need to set intelephense.diagnostics.undefinedProperties = true, but I don’t know how to do that with this extension.

This wasn't an option before. Intelephense has a lot of configurable 
options and I didn't add them all because it takes a lot of time. I've 
already implemented this and it will become available in the upcoming 
1.3.0 version of the plugin that should be published later today.

Let me know if you're still running into this problem next week!

-- 
Best regards,
Kristófer R.
Reply to thread Export thread (mbox)