strict nannying ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OK

I've got a machine set up with PHP5.4 and left the strict errors showing, and I'm falling at the first hurdle :)

The functions for generating URL's are used both statically and as part of the class. STRICT complains because they are not marked 'static' ( and I'm assuming 'public static' is the correct addition here ) but then of cause the $this fallback fails because '$this' is not allowed IN the static use of the function?

How do others get around this problem? I've some 120 static instances to fix in parallel with about the same number of class uses across about 40 odd functions. Do I really have to duplicate the code and rename every static use?

--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux