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

8.0.x
webchick 2012-09-30 20:55:09 -04:00
parent 195f1f802f
commit 93ce8cb0f1
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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) {