From 93ce8cb0f105050a06d221f415f7fd5279560f1f Mon Sep 17 00:00:00 2001 From: webchick Date: Sun, 30 Sep 2012 20:55:09 -0400 Subject: [PATCH] Issue #1796604 by andypost: Fixed Make constructor parameters consistent. --- core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php | 2 +- core/lib/Drupal/Core/Entity/Entity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php index 216b459c77d..77ffa8cfb1f 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -28,7 +28,7 @@ abstract class ConfigEntityBase extends Entity implements ConfigEntityInterface /** * Overrides Entity::__construct(). */ - public function __construct(array $values = array(), $entity_type) { + public function __construct(array $values, $entity_type) { parent::__construct($values, $entity_type); // Backup the original ID, if any. diff --git a/core/lib/Drupal/Core/Entity/Entity.php b/core/lib/Drupal/Core/Entity/Entity.php index 4384e1f9b89..236fc1cbe19 100644 --- a/core/lib/Drupal/Core/Entity/Entity.php +++ b/core/lib/Drupal/Core/Entity/Entity.php @@ -52,7 +52,7 @@ class Entity implements IteratorAggregate, EntityInterface { /** * Constructs a new entity object. */ - public function __construct(array $values = array(), $entity_type) { + public function __construct(array $values, $entity_type) { $this->entityType = $entity_type; // Set initial values. foreach ($values as $key => $value) {