Issue #1796604 by andypost: Fixed Make constructor parameters consistent.
parent
195f1f802f
commit
93ce8cb0f1
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue