Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/35' into develop
Browse files Browse the repository at this point in the history
Forward port #35
  • Loading branch information
Xerkus committed Mar 29, 2017
2 parents 2b969c3 + d5208be commit 9e6f2a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#35](https://github.com/zendframework/zend-feed/pull/35) fixed
"A non-numeric value encountered" in php 7.1

## 2.7.0 - 2016-02-11

Expand Down
6 changes: 3 additions & 3 deletions src/Reader/Extension/AbstractEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,18 +135,18 @@ public function setType($type)
if ($type === Reader\Reader::TYPE_RSS_10
|| $type === Reader\Reader::TYPE_RSS_090
) {
$this->setXpathPrefix('//rss:item[' . ($this->entryKey + 1) . ']');
$this->setXpathPrefix('//rss:item[' . ((int)$this->entryKey + 1) . ']');
return $this;
}

if ($type === Reader\Reader::TYPE_ATOM_10
|| $type === Reader\Reader::TYPE_ATOM_03
) {
$this->setXpathPrefix('//atom:entry[' . ($this->entryKey + 1) . ']');
$this->setXpathPrefix('//atom:entry[' . ((int)$this->entryKey + 1) . ']');
return $this;
}

$this->setXpathPrefix('//item[' . ($this->entryKey + 1) . ']');
$this->setXpathPrefix('//item[' . ((int)$this->entryKey + 1) . ']');
return $this;
}

Expand Down

0 comments on commit 9e6f2a5

Please sign in to comment.