Skip to content

Commit

Permalink
Fix example in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich authored Jan 19, 2024
1 parent 19b8056 commit cf6291a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ This is useful for events that represent the creation of an entity:
```php
$eventStore->commit(
streamName: StreamName::fromString('customer-' . $customerId->value),
events: Events::single(EventId::create(), EventType::fromString('CustomerHasSignedUp'), EventData::fromString($customerData->toJson()), EventMetadata::none()),
events: new Event(EventId::create(), EventType::fromString('CustomerHasSignedUp'), EventData::fromString($customerData->toJson())),
expectedVersion: ExpectedVersion::NO_STREAM(),
);
```
Expand Down

0 comments on commit cf6291a

Please sign in to comment.