Skip to content

Commit

Permalink
Replace code using Value Objects
Browse files Browse the repository at this point in the history
This changeset was created with a new rector ruleset (see neos/rector#11)
  • Loading branch information
bwaidelich committed Apr 1, 2023
1 parent 9e6c867 commit 85bf828
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Behavior/Bootstrap/FeatureContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function iHaveTheFollowingNodeDataRows(TableNode $nodeDataRows): void
return [
'path' => $row['Path'],
'parentpath' => implode('/', array_slice(explode('/', $row['Path']), 0, -1)) ?: '/',
'identifier' => $row['Identifier'] ?? (string)NodeAggregateId::create(),
'identifier' => $row['Identifier'] ?? NodeAggregateId::create()->value,
'nodetype' => $row['Node Type'] ?? 'unstructured',
'properties' => !empty($row['Properties']) ? $row['Properties'] : '{}',
'dimensionvalues' => !empty($row['Dimension Values']) ? $row['Dimension Values'] : '{}',
Expand Down

0 comments on commit 85bf828

Please sign in to comment.