I
I
Ivan2015-11-09 09:39:27
SQL
Ivan, 2015-11-09 09:39:27

phpstorm inspections sql. how to disable sql inspection?

$z = self::db()->prepare(sprintf(
  'SELECT `u`.`id`, `u`.`login` FROM `%s` as `u`, `%s` as `x` WHERE `x`.`group_id` = %s AND `u`.`id` = `x`.`user_id` AND `u`.`id` != %s;',
  Tables::USERS, Tables::USER_GROUP,  $groupId, $this->user->getId()));

Underlines the section of code "=% s", writes expected got '%'
In Inspections, disabled the entire SQL section, restarted the editor, the red bar on the scroll does not help)
Previously, I somehow solved this problem, unfortunately the global phpstorm settings were lost and again I customize for myself.
It is necessary to disable the check or edit the code so that it does not swear.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2015-11-09
@skyball

File / Settings / Editor / Language Injections and disable SQL there

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question