V
V
Victoria2016-03-14 12:26:30
PHP
Victoria, 2016-03-14 12:26:30

How to remove underscores in PhpStorm that the method in the class was not found, although everything is working correctly?

I set everything up to work with Smarty, using the assign() and display() methods, PhpStorm actively highlights them in yellow and says that such methods were not found, but everything works as it should.
How to remove these underscores, what does he not like?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Skobkin, 2016-03-14
@skobkin

  • Use the phpDoc annotation to specify the correct class for the variable that contains its instance.
  • Disable validation in Editor -> Inspections -> PHP -> Undefined -> Undefined method. But it's better not to do that. Inspections are not designed to annoy the coder.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question