Skip to content

Commit

Permalink
Removed stray type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
milos-pejanovic-devtech committed Mar 17, 2017
1 parent b1c4377 commit 5b19e4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Traits/MappableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function mapFromArray(array $data) {
* @throws \InvalidArgumentException
* @throws ModelMapperException
*/
public function mapFromJson(string $data) {
public function mapFromJson($data) {
$object = json_decode($data);
if($object === null) {
throw new \InvalidArgumentException('Invalid json supplied.');
Expand All @@ -57,7 +57,7 @@ public function mapFromObject($object) {
/**
* @param string $xml
*/
public function mapFromXml(string $xml) {
public function mapFromXml($xml) {
$mapper = new XmlModelMapper();
$mapper->map($xml, $this);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/ValidatableTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait ValidatableTrait {
/**
* @param string $validationType
*/
public function validate(string $validationType = '') {
public function validate($validationType = '') {
$validator = new ModelValidator();
$validator->validate($this, $validationType);
}
Expand Down

0 comments on commit 5b19e4b

Please sign in to comment.