Commit 93ce8cb0 authored by webchick's avatar webchick

Issue #1796604 by andypost: Fixed Make constructor parameters consistent.

parent 195f1f80
......@@ -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.
......
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment