How to disable warning for $this?
4 posts
• Page 1 of 1
How to disable warning for $this?
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?
Even if I declare this as phpdoc @var at start of document I get this warning.
It's a little annoying, nothing else.
How can I disable this?
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?
No input from devsense?
- urosg
- Posts: 51
- Joined: February 24th, 2016, 2:05 am
Re: How to disable warning for $this?
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.
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?
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!
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. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 66 guests