diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e96766..939ee90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG +## 1.2.2 +- Merged PR #9 + ## 1.2.1 - Fixed issue #7 diff --git a/composer.json b/composer.json index ca3b875..194bd6b 100644 --- a/composer.json +++ b/composer.json @@ -24,6 +24,11 @@ { "name": "NtlBldrv", "role": "Contributor" + }, + { + "name": "baijunyao", + "email": "baijunyao@baijunyao.com", + "role": "Contributor" } ], "support" : { diff --git a/src/Element.php b/src/Element.php index ca74ba8..1feacb7 100644 --- a/src/Element.php +++ b/src/Element.php @@ -249,13 +249,13 @@ public function setNonceValue($nonceValue) } /** - * @param mixed $formated + * @param mixed $formatted * * @return int|string */ - public function getTimestampValue($formated = false) + public function getTimestampValue($formatted = false) { - return ($formated && $this->timestampValue > 0) ? gmdate('Y-m-d\TH:i:s\Z', $this->timestampValue) : $this->timestampValue; + return ($formatted && $this->timestampValue > 0) ? gmdate('Y-m-d\TH:i:s\Z', $this->timestampValue) : $this->timestampValue; } /**