Skip to content

Commit

Permalink
Merge pull request #262 from ec-europa/PHP7-compatibility
Browse files Browse the repository at this point in the history
Issue #261: RawDrupalContext::parseEntityFields behaves wrong under PHP7

Signed-off-by: Jonathan Hedstrom <jhedstrom@gmail.com>
  • Loading branch information
jhedstrom committed Mar 8, 2016
1 parent 6bfff49 commit 89af17c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalExtension/Context/RawDrupalContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public function parseEntityFields($entity_type, \stdClass $entity) {
$multicolumn_field = '';
$multicolumn_fields = array();

foreach ($entity as $field => $field_value) {
foreach (clone $entity as $field => $field_value) {
// Reset the multicolumn field if the field name does not contain a column.
if (strpos($field, ':') === FALSE) {
$multicolumn_field = '';
Expand Down

0 comments on commit 89af17c

Please sign in to comment.