I don't see that. The functions in the method of Example 1 are not static -
only the class variable is static.


On 9 December 2013 12:54, Nils Rückmann <notifications@github.com> wrote:

> In libraries/cms/helper/helper.php:
>
> > @@ -27,7 +27,7 @@ class JHelper
> >  	 *
> >  	 * @since   3.2
> >  	 */
> > -	public function getCurrentLanguage($detectBrowser = true)
> > +	public static function getCurrentLanguage($detectBrowser = true)
>
> Addition: You can use static methods in both ways, static (Foo::bar()) and
> object-related ($foo->bar()). See:
> http://php.net/manual/en/language.oop5.static.php
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/joomla/joomla-cms/pull/2652/files#r8195806>
> .
>