[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.pdt] Re: How to get rid of warnings in console?

.oO(kkaal)

>I am developing components for Joomla! 1.5. Joomla! uses singleton 
>patterns extensively. That means that the objects have a static field in 
>which it stores a instance of itself. A getInstace() function makes this 
>own instance awailable globally.
>
>PDT throws a warning for every occurance of this construct: "Debug 
>strict... - Non-static method JLoader::register() should not be called 
>statically"
>
>For my development work it is really not of interest if that is a problem 
>or not (I think it is a quite modern design),

It is bad design, in strict PHP mode I would even call it a bug. Static
methods should be marked as that.

But in case of Joomla! 1.5 a reason might be that it's still backwards-
compatible with PHP 4 (AFAIK, I don't use it).

>but it is virtually 
>impossible to find my relevant debugging info in tons of (for me) 
>unnecessary info.
>
>Can anybody tell me how to switch that off?

You could disable E_STRICT errors by changing error_reporting.

Micha