Skip to content

Commit

Permalink
Renenerated
Browse files Browse the repository at this point in the history
  • Loading branch information
calcinai committed Dec 1, 2016
1 parent 2a6470e commit 04d596f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/BaseSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ abstract class BaseSchema implements \IteratorAggregate, \Countable, \JsonSerial
*/
protected static $additional_properties = [];

public function __construct($data)
public function __construct($data = [])
{
$this->parseData($data);
}
Expand Down Expand Up @@ -211,10 +211,10 @@ protected static function getFQCN($relative_class)
}

/**
* @param null $data
* @param array $data
* @return static
*/
public static function create($data = null)
public static function create($data = [])
{
return new static($data);
}
Expand Down

0 comments on commit 04d596f

Please sign in to comment.