debugging - What do asterisks in properties' names mean in the debugger's view of PhpStorm? -
i have issue code , when i'm comparing last working reversion current one, see among other things difference in phpstorm's debugging output:
working version
object = {mynamespace\dataobject\protocolsetforprotocolserver} [3] *mynamespace\dataobject\protocolset*id = null *mynamespace\dataobject\protocolset*endpoint = null *mynamespace\dataobject\protocolset*protocols = {doctrine\common\collections\arraycollection} [1]
not working version
object = {mynamespace\dataobject\protocolsetforprotocolserver} [3] id = null endpoint = null protocols = {doctrine\common\collections\arraycollection} [1]
what difference between *mytype*myproperty
, myproperty
in debugging output of phpstorm?
just came here same question , found yours...
after investigation believe mark class instance's private properties.
using modified class symfony example:
namespace symfony\component\eventdispatcher; class eventdispatcher implements eventdispatcherinterface { private $listeners = array(); private $sorted = array(); public $foo = array(); protected $bar = array(); }
when debugging , looking @ properties of $this
it'll contain following:
*symfony\component\eventdispatcher\eventdispatcher*sorted *symfony\component\eventdispatcher\eventdispatcher*listeners foo bar
Comments
Post a Comment