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

Commit 474eb93

Browse files
committed
Merge branch 'hotfix/106' into release-2.4
Close #106
2 parents 9c48e07 + 4e12c88 commit 474eb93

2 files changed

Lines changed: 25 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
All notable changes to this project will be documented in this file, in reverse chronological order by release.
44

5+
## 2.4.2 - TBD
6+
7+
### Added
8+
9+
- Nothing.
10+
11+
### Changed
12+
13+
- Nothing.
14+
15+
### Deprecated
16+
17+
- Nothing.
18+
19+
### Removed
20+
21+
- Nothing.
22+
23+
### Fixed
24+
25+
- [#106](https://github.com/zendframework/zend-hydrator/pull/106) fixes PHP 7.4 compatibility.
26+
527
## 2.4.1 - 2018-11-19
628

729
### Added

src/AbstractHydrator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,17 +85,17 @@ public function getStrategy($name)
8585
*/
8686
public function hasStrategy($name)
8787
{
88-
if (array_key_exists($name, $this->strategies)) {
88+
if ($this->strategies->offsetExists($name)) {
8989
return true;
9090
}
9191

9292
if ($this->hasNamingStrategy()
93-
&& array_key_exists($this->getNamingStrategy()->hydrate($name), $this->strategies)
93+
&& $this->strategies->offsetExists($this->getNamingStrategy()->hydrate($name))
9494
) {
9595
return true;
9696
}
9797

98-
return array_key_exists('*', $this->strategies);
98+
return $this->strategies->offsetExists('*');
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)