Skip to content

Commit aab569b

Browse files
committed
Merge 3.0.x-dev into master
2 parents d6caca4 + 3e030af commit aab569b

31 files changed

Lines changed: 269 additions & 1350 deletions

Aliases.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
// This is a IDE helper to understand class aliasing.
4+
// It should not be included anywhere.
5+
// Actual aliasing happens in the entry point using class_alias.
6+
7+
namespace { throw new Exception( 'This code is not meant to be executed' ); }
8+
9+
namespace Wikibase\DataModel\Claim {
10+
11+
/**
12+
* @deprecated since 3.0.0, use the base class instead.
13+
*/
14+
class Claim extends \Wikibase\DataModel\Statement\Statement {}
15+
16+
}

RELEASE-NOTES.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Wikibase DataModel release notes
22

3+
## Version 3.0.0 (dev)
4+
5+
* The concept of `Claim` is no longer modelled
6+
* The `Claim` class itself has been removed, though `Claim` is now a temporary alias for `Statement`
7+
* `Claim::RANK_TRUTH` have been removed
8+
* `Statement` no longer takes a `Claim` in its constructor
9+
* `Statement::setClaim` and `Statement::getClaim` have been removed
10+
* Removed `ClaimList`
11+
* Removed `ClaimListAccess`
12+
313
## Version 2.6.0 (2015-03-08)
414

515
* Added `Reference::isEmpty`

WikibaseDataModel.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@
1212
return 1;
1313
}
1414

15-
define( 'WIKIBASE_DATAMODEL_VERSION', '2.7.0 alpha' );
15+
define( 'WIKIBASE_DATAMODEL_VERSION', '3.0.0 alpha' );
1616

1717
if ( defined( 'MEDIAWIKI' ) ) {
1818
call_user_func( function() {
1919
require_once __DIR__ . '/WikibaseDataModel.mw.php';
2020
} );
2121
}
22+
23+
// Aliases introduced in 3.0.0
24+
class_alias( 'Wikibase\DataModel\Statement\Statement', 'Wikibase\DataModel\Claim\Claim' );

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"extra": {
4242
"branch-alias": {
43-
"dev-master": "2.7.x-dev"
43+
"dev-master": "3.0.x-dev"
4444
}
4545
},
4646
"scripts": {

src/Claim/Claim.php

Lines changed: 0 additions & 234 deletions
This file was deleted.

0 commit comments

Comments
 (0)