How to disable warning for $this?

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

How to disable warning for $this?

Postby urosg » August 31st, 2018, 12:44 pm

Since a few last versions I started to notice that I am getting an warning when using $this variable in "global" scope of a view in Yii2 framework.

How can I disable this?

this-view.PNG


Even if I declare this as phpdoc @var at start of document I get this warning.

It's a little annoying, nothing else.
You do not have the required permissions to view the files attached to this post.
urosg
 
Posts: 51
Joined: February 24th, 2016, 2:05 am

Re: How to disable warning for $this?

Postby urosg » September 11th, 2018, 12:55 pm

No input from devsense?
urosg
 
Posts: 51
Joined: February 24th, 2016, 2:05 am

Re: How to disable warning for $this?

Postby info@dotcompanion.de » September 17th, 2018, 6:47 pm

Same problem here.
The $this keyword for example in template files which are included in view files is marked as warning.
That's really annoying and should be fixed.
info@dotcompanion.de
 
Posts: 4
Joined: September 17th, 2018, 6:13 pm

Re: How to disable warning for $this?

Postby Miloslav Beno » September 20th, 2018, 11:50 am

Hi guys,

Thanks for letting us know. Yes, I understand this can be really annoying. We will provide an option to turn this or any other warning off.

Thank you again!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1228
Joined: January 7th, 2012, 8:36 pm


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 5 guests

User Control Panel

Login

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 89 on October 15th, 2018, 4:06 pm

Users browsing this forum: No registered users and 5 guests
Phalanger