Skip to content

Commit

Permalink
move to stable version of immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bretterklieber committed Sep 16, 2019
1 parent 2f1fb36 commit e363239
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 44 deletions.
12 changes: 3 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"php": "^7.2",
"ext-mongodb": "^1.5",
"mongodb/mongodb": "^1.4",
"mbretter/stk-immutable": "dev-master",
"mbretter/stk-di": "^1.1.0",
"mbretter/stk-immutable": "^1",
"mbretter/stk-di": "^1",
"psr/log": "^1.1"
},
"require-dev": {
Expand All @@ -38,11 +38,5 @@
"psr-4": {
"Stk\\": "src/Stk"
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/mbretter/stk-immutable.git"
}
]
}
}
47 changes: 16 additions & 31 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/Stk/Immutable/Serialize/BSON.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ private function _bsonSerialize($data)
if (is_array($data)) {
return array_map([$this, '_bsonSerialize'], $data);
} else {

if ($data instanceof DateTime) {
$data = new UTCDatetime($data);
}
Expand All @@ -46,7 +45,7 @@ private function _bsonUnserialize(array $data)
array_walk_recursive($data, function (&$v, $k) {
if ($v instanceof UTCDateTime) {
$v = $v->toDateTime()->setTimezone(new DateTimeZone(date_default_timezone_get()));
} else if ($v instanceof ObjectID) {
} elseif ($v instanceof ObjectID) {
$v = (string)$v;
}
});
Expand Down
2 changes: 0 additions & 2 deletions src/Stk/MongoDB/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,5 @@ public function debug($message, array $context = [])
if ($this->logger) {
$this->logger->debug($message, $context);
}

}
}

0 comments on commit e363239

Please sign in to comment.