Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using __call with static classes?

Is it possible to use the __call magic method when calling functions statically?

like image 286
nickf Avatar asked Jan 27 '09 02:01

nickf


1 Answers

Not yet, there is a proposed (now available) __callStaticDocs method in the pipeline last I knew. Otherwise __call and the other __ magic methods are not available for use by anything but the instance of a object.

like image 66
David Avatar answered Sep 30 '22 18:09

David