Skip to content

Commit

Permalink
bugfix: constructor ID objects casted into string
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu committed May 14, 2017
1 parent b074d82 commit f065aa2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Pho/Framework/Actor.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Actor extends \Pho\Lib\Graph\Node implements ParticleInterface {
public function __construct(ContextInterface $context) {
parent::__construct($context);
$this->creator = $this;
$this->creator_id = $this->id();
$this->creator_id = (string) $this->id();
$this->enter($context);
$this->setupEdges();
}
Expand Down
2 changes: 1 addition & 1 deletion src/Pho/Framework/Frame.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Frame extends \Pho\Lib\Graph\SubGraph implements ParticleInterface, Contex
public function __construct(Actor $creator, ContextInterface $context) {
parent::__construct($context);
$this->creator = $creator;
$this->creator_id = $creator->id();
$this->creator_id = (string) $creator->id();
$this->setupEdges();
}

Expand Down
2 changes: 1 addition & 1 deletion src/Pho/Framework/Object.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Object extends \Pho\Lib\Graph\Node implements ParticleInterface {
public function __construct(Actor $creator, ContextInterface $context) {
parent::__construct($context);
$this->creator = $creator;
$this->creator_id = $creator->id();
$this->creator_id = (string) $creator->id();
$this->setupEdges();
}

Expand Down

0 comments on commit f065aa2

Please sign in to comment.