diff --git a/core/modules/comment/src/CommentStatistics.php b/core/modules/comment/src/CommentStatistics.php index c275f42..6b74184 100644 --- a/core/modules/comment/src/CommentStatistics.php +++ b/core/modules/comment/src/CommentStatistics.php @@ -68,7 +68,7 @@ public function __construct(Connection $database, AccountInterface $current_user /** * {@inheritdoc} */ - public function read($entities, $entity_type, $accurate = TRUE) { + public function read(array $entities, $entity_type, $accurate = TRUE) { $options = $accurate ? array() : array('target' => 'replica'); $stats = $this->database->select('comment_entity_statistics', 'ces', $options) ->fields('ces') @@ -96,7 +96,7 @@ public function delete(EntityInterface $entity) { /** * {@inheritdoc} */ - public function create(FieldableEntityInterface $entity, $fields) { + public function create(FieldableEntityInterface $entity, array $fields) { $query = $this->database->insert('comment_entity_statistics') ->fields(array( 'entity_id',