Skip to content

Commit

Permalink
Merge pull request jhedstrom#262 from ec-europa/PHP7-compatibility
Browse files Browse the repository at this point in the history
Issue jhedstrom#261: RawDrupalContext::parseEntityFields behaves wrong under PHP7
  • Loading branch information
jhedstrom committed Mar 8, 2016
2 parents 11d94c7 + 8df22fd commit 9aec37b
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 @@ -332,7 +332,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 9aec37b

Please sign in to comment.