Skip to content
This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Commit e85de7e

Browse files
author
warrick
committed
Fixed a small bug in the Builder->toXml() method.
1 parent 8806e8c commit e85de7e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.0.2] - 2019-06-24
10+
### Fixed
11+
- Fixed a bug in the `Builder->toXml()` that caused an error when no collection had been added.
12+
913
## [0.0.1] - 2019-06-20
1014
- Add products to an XML feed builder.
1115
- Render the feed as an array.

Diff for: src/Builder.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function toXml(string $filename = null)
8787
$this->addVersionNode($root);
8888
$this->addCreatedNode($root);
8989

90-
$this->products->toXml($root);
90+
$this->products()->toXml($root);
9191

9292
if ($filename) {
9393
$document->save($filename);

0 commit comments

Comments
 (0)