Skip to content

Commit ca2f407

Browse files
committed
Deprecate Entity::getDiff
1 parent b5e0008 commit ca2f407

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

RELEASE-NOTES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Other breaking changes:
6666
#### Other changes
6767

6868
* Undeprecated passing an integer to `Item::setId` and `Property::setId`
69-
* Deprecated `Entity::setId`, `Entity::newClaim` and `Entity::getAllSnaks`
69+
* Deprecated `Entity::setId`, `Entity::newClaim`, `Entity::getAllSnaks` and `Entity::getDiff`
7070
* Deprecated `Item::getClaims` in favour of `Item::getStatements`
7171
* The FQN of `Statement` is now `Wikibase\DataModel\Statement\Statement`. The old FQN is deprecated.
7272

src/Entity/Entity.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,7 @@ public function newClaim( Snak $mainSnak ) {
403403
* Returns an EntityDiff between $this and the provided Entity.
404404
*
405405
* @since 0.1
406+
* @deprecated since 1.0 - use EntityDiffer or a more specific differ
406407
*
407408
* @param Entity $target
408409
*

0 commit comments

Comments
 (0)