How in .blade.php files to show only errors of html structure?

Hello,
In PhpStorm 2017.2.4 working with laravel 5.7 project in .blade.php
files and clicking F2 for page errors is it possible to show only errors of html structure?
It is not useful to show errors of undefined variables and classes, as they are not defined in this file...

Thanks!

3 comments

>It is not useful to show errors of undefined variables and classes, as they are not defined in this file...

Define them? PHPDoc @var woks there (using native PHP tags) ...

2

I mean different. In the template this error message https://imgur.com/a/O9ZE9L9  has no sense, as for template variables are prepared in the control. I would like to exclude such errors...

0

I kind of understand your point (variable will be defined elsewhere) .... but at the same time -- what if you make a typo etc? Plus, you are writing your code inside PHP tags...

But if you really need it -- consider submitting Feature Request ticket at the Issue Tracker (but check for possibly existing tickets first).

 

I personally define all vars as long as they are not a simple int/string/bool value. For example:

1

Please sign in to leave a comment.