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

Allow using property access on ZF\Hal\Entity instances #75

Merged
merged 1 commit into from
Jul 27, 2016

Conversation

weierophinney
Copy link
Member

Fixes #74.

In cases where a zf-hal version prior to 1.4 is installed, we need to use property access (via property overloading) instead of the getEntity() method.

Fixes zfcampus#74. In cases where a zf-hal version prior to 1.4 is installed, we
need to use property access (via property overloading) instead of the
`getEntity()` method.
@weierophinney weierophinney added this to the 1.2.2 milestone Jul 27, 2016
@weierophinney weierophinney self-assigned this Jul 27, 2016
@weierophinney weierophinney merged commit e3aa9c2 into zfcampus:master Jul 27, 2016
weierophinney added a commit that referenced this pull request Jul 27, 2016
weierophinney added a commit that referenced this pull request Jul 27, 2016
weierophinney added a commit that referenced this pull request Jul 27, 2016
Forward port #75

Conflicts:
	CHANGELOG.md
@weierophinney weierophinney deleted the hotfix/74 branch July 27, 2016 20:15
@vincequeiroz
Copy link

It's only one alert but use directly property access is deprecated and trigger a deprecated error.

<b>Deprecated</b>:
Direct property access to ZF\Hal\Entity::$entity is deprecated, use getters instead. in
<b>/var/www/application/vendor/zfcampus/zf-hal/src/Entity.php</b> on line <b>55</b>
<br />

https://github.com/zfcampus/zf-hal/blob/master/src/Entity.php#L48

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants