php - The method is there, but I cannot use it? -


fatal error: call member function get() on non-object on

pr($transaction->invoice->get()); 

i getting weird message. know sure method there, , available use, , double checked before using it. what's wrong here?

pr(get_class_methods($transaction->invoice)); array (     [0] => __construct     [1] =>     [2] => __tostring     [3] => gethref     [4] => sethref     [5] => _get ) 

update:

var_dump(is_object($transaction->invoice)); evaluated bool(true)

none of methods work. i'm confused! think 1 of edge cases. i'm using recurly library.

update

looks objects coming un-instantiating themselves. that's weird. didn't know php this.

what experience here magic. magic hard understand, it's harder debug. expect large chunk of recurly php library based on magic.

looks objects coming un-instantiating themselves. that's weird. didn't know php this.

it's not php, library. makes use of magic getters , setters , other magic stuff properties. must have been driven wizard being in love magic. don't feel enchanted yet?

best way above magic install step debugger xdebug , set breakpoint , inspect values directly. common php ides have support xdebug remote debugging (even called remote debugging, works on local development machine, too).


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -