Non-static method .... should not be called statically

Do you have questions regarding Pecl or Pear? ask here!

Moderators: macek, egami, gesf

Post Reply
User avatar
Nullsig
php-forum Fan User
php-forum Fan User
Posts: 981
Joined: Thu Feb 17, 2011 6:52 am
Location: Racine, WI

Re: Non-static method .... should not be called statically

Post by Nullsig » Tue May 29, 2012 11:42 am

You should not be calling the non-static method statically.

User avatar
LordMatt
New php-forum User
New php-forum User
Posts: 7
Joined: Tue Apr 30, 2013 4:16 pm
Location: UK
Contact:

Re: Non-static method .... should not be called statically

Post by LordMatt » Tue Apr 30, 2013 5:18 pm

If the method is explicitly declared as static then it should be fine... However, yes, as you are discovering, the standards of coding from PHP4 to PHP5 have shifted.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests