php - Error with __Call on magento -
i can't figure out,
i have method on class like:
public function __call($closure, $args){ return call_user_func_array($this->{$closure}->bindto($this),$args); }
this works on local server on magento, when try use on server returns me following error:
fatal error: call undefined method closure::bindto() in
i tried adding var_dump variables, have correct values.
any ideas?
closure::bindto
exists in php 5.4 or newer only. check php version.
Comments
Post a Comment