Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
evalor committed Nov 27, 2018
1 parent dc88350 commit 976fa68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SplBean.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SplBean implements \JsonSerializable

public function __construct(array $data = null,$autoCreateProperty = false)
{
$this->_keyMap = $this->setKeyMap();
$this->_keyMap = $this->setKeyMapping();
if($data){
$this->arrayToBean($data,$autoCreateProperty);
}
Expand Down Expand Up @@ -97,7 +97,6 @@ final public function getProperty($name)

final public function jsonSerialize():array
{
// TODO: Implement jsonSerialize() method.
$data = [];
foreach ($this as $key => $item){
$data[$key] = $item;
Expand Down Expand Up @@ -133,7 +132,6 @@ protected function setKeyMapping():array

public function __toString()
{
// TODO: Implement __toString() method.
return json_encode($this->jsonSerialize(),JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES);
}

Expand Down

0 comments on commit 976fa68

Please sign in to comment.