Skip to content

Commit

Permalink
Merge f5b2cbf into c513f29
Browse files Browse the repository at this point in the history
  • Loading branch information
Strate committed Apr 8, 2016
2 parents c513f29 + f5b2cbf commit 037877d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion parents/Interfaces.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ public function jsonSerialize()
*/
public function serialize()
{
return serialize($this->getData());
$data = $this->getData();
$data['mappings_serialized'] = $this->context->getMappings();
return serialize($data);
}

/**
Expand Down
3 changes: 3 additions & 0 deletions parsing/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ public function __construct(array $data)
$this->data = $data;
$this->sources = isset($data['sources']) ? $data['sources'] : [];
$this->names = isset($data['names']) ? $data['names'] : [];
$this->mappings = isset($data['mappings_serialized']) && $data['mappings_serialized'] instanceof Mappings
? $data['mappings_serialized']
: null;
}

/**
Expand Down

0 comments on commit 037877d

Please sign in to comment.