Commit dc852194 authored by Aaron Wells's avatar Aaron Wells

Documenting that call_static_method() is deprecated

PHP 5.0 to 5.2 apparently did not support dynamic access
of static members, e.g. $classname::$method(). But support
for this was added in PHP 5.3. So there's no longer any
reason to use call_static_method().

Change-Id: Ib2c48251fb3e5a8ca4af9994bd2d648bc40794d2
behatneeded: Comment update only
parent 9d8ec90c
......@@ -1733,7 +1733,11 @@ function plugin_all_installed($all=false) {
/**
* Helper to call a static method when you do not know the name of the class
* you want to call the method on. PHP5 does not support $class::method().
* you want to call the method on. (PHP 5.0-5.2 did not support $class::method())
*
* @deprecated In PHP 5.3+, you can do $class::$method, $class::method(), or class::$method
* See: http://php.net/ChangeLog-5.php#5.3.0
* "Added support for dynamic access of static members using $foo::myFunc()."
*/
function call_static_method($class, $method) {
$args = func_get_args();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment