S
S
sprashivatel2020-03-22 10:57:12
phpstorm
sprashivatel, 2020-03-22 10:57:12

Why is the tooltip not displayed?

protected function successMessage($message)
{
    $_SESSION['alert'] = [
        'result' => 'success',
        'message' => $message
    ];
}
$this->successMessage('Сообщение'); // нет подсветки параметра - message:

protected function successMsg($msg)
{
    $_SESSION['alert'] = [
        'result' => 'success',
        'message' => $msg
    ];
}
$this->successMsg( /*msg:*/ 'Сообщение'); // есть подсветка параметра

How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Aleksandr Yurchenko, 2020-03-22
@sprashivatel

It is not displayed because in the settings this word is blacklisted inline hints.
If you still want to use this parameter name, go to Config/Editor/Inline hints/PHP and in this tab open "black list..." and delete the rule(message)

rule: (message)

5e77264200deb747510762.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question