__callStatic method handler passed to add_action causes bug in PHP

There is no __callStatic magic function in PHP < 5.3. As so, it can not be identified as callback.

As WordPress does not validate prior to invoke a callback with filters and hooks, you get the PHP warning because running on PHP < 5.3 it is not a valid callback.

You can change the design of your callbacks to be non-static and make use of the __call magic function which is available with earlier PHP 5 versions if you’re looking for a similar feature.

But sticking to PHP 5.3 is not that bad.