4 Replies Last post: Aug 16, 2013 1:44 PM by kxc  
kxc Newbie 16 posts since
Aug 15, 2013
Currently Being Moderated

Aug 15, 2013 4:37 PM

Ignore only one undefined class

Hello, is it real to ignore only one specific undefined class ? I found where i can disable backlight all undefined classe's. But i need only one, for example class "Test", is it real to do ? Thanks.

Attachments:
Andriy Bazanov Master 4,193 posts since
May 28, 2010
Currently Being Moderated
Aug 15, 2013 11:12 PM in response to: kxc
Re: Ignore only one undefined class

Hi there,

 

Hello, is it real to ignore only one specific undefined class ?

Please describe what you mean by "ignore".

 

If you do not want it to be higlighted as "undefined" .. then just define it -- create some file inside the project (e.g. PROJECT_ROOT/_misc_/ide_hints.php) and describe it there. This file will be used by IDE only.

Andriy Bazanov Master 4,193 posts since
May 28, 2010
Currently Being Moderated
Aug 16, 2013 1:27 PM in response to: kxc
Re: Ignore only one undefined class

Mby i can choose class name for ignore in settings, or somewhere ?

No.

 

You should be able to suppress warning in any place via special PHPDoc comment in your code (see below),.. but it will affect that place only, so if you have such class in many files/places you will need to repeat it many times.

/** @noinspection PhpUndefinedClassInspection */
$zz = new Test();

More Like This

  • Retrieving data ...