From ba354a0b7caaa80b3688f9d02a500718237b50d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thiemo=20M=C3=A4ttig?= Date: Tue, 25 Nov 2014 12:03:59 +0100 Subject: [PATCH] Property constructor parameter is optional --- src/Entity/Property.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/Entity/Property.php b/src/Entity/Property.php index dfcb2bb6..0802f1e1 100644 --- a/src/Entity/Property.php +++ b/src/Entity/Property.php @@ -42,7 +42,12 @@ class Property extends Entity implements StatementListProvider { * @param string $dataTypeId * @param StatementList|null $statements Since 1.1 */ - public function __construct( PropertyId $id = null, Fingerprint $fingerprint, $dataTypeId, StatementList $statements = null ) { + public function __construct( + PropertyId $id = null, + Fingerprint $fingerprint, + $dataTypeId, + StatementList $statements = null + ) { $this->id = $id; $this->fingerprint = $fingerprint; $this->setDataTypeId( $dataTypeId ); @@ -125,8 +130,7 @@ public static function newFromType( $dataTypeId ) { return new self( null, Fingerprint::newEmpty(), - $dataTypeId, - new StatementList() + $dataTypeId ); }