Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop using deprecated method #96

Merged
merged 1 commit into from
Feb 25, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"prefer-stable": true,
"require": {
"php": ">=5.3.0",
"wikibase/data-model": "~2.5",
"addwiki/mediawiki-api-base": "~0.2",
"doctrine/cache": "~1.4",
"ppp/wikibase-entity-store": "*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function simplificationProvider() {
$list = array();

//Value
$douglasAdamItem = Item::newEmpty();
$douglasAdamItem = new Item();
$douglasAdamItem->setId(new ItemId('Q42'));
$birthPlaceStatement = new Statement(new Claim(
new PropertyValueSnak(new PropertyId('P214'), new StringValue('113230702'))
Expand Down Expand Up @@ -138,7 +138,7 @@ public function simplificationProvider() {
);

//SomeValue
$douglasAdamItem = Item::newEmpty();
$douglasAdamItem = new Item();
$douglasAdamItem->setId(new ItemId('Q42'));
$birthPlaceStatement = new Statement(new Claim(new PropertySomeValueSnak(new PropertyId('P19'))));
$birthPlaceStatement->setGuid('42');
Expand All @@ -155,7 +155,7 @@ public function simplificationProvider() {
);

//No result
$douglasAdamItem = Item::newEmpty();
$douglasAdamItem = new Item();
$douglasAdamItem->setId(new ItemId('Q42'));
$list[] = array(
new TripleNode(
Expand All @@ -169,7 +169,7 @@ public function simplificationProvider() {
);

//Parsing
$douglasAdamItem = Item::newEmpty();
$douglasAdamItem = new Item();
$douglasAdamItem->setId(new ItemId('Q42'));
$list[] = array(
new TripleNode(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected function getInstance(FormatterOptions $options) {
}

private function getQ42() {
$item = Item::newEmpty();
$item = new Item();
$item->setId( new ItemId('Q42'));
$item->getFingerprint()->setLabel('en', 'Douglas Adams');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function getInstance(FormatterOptions $options) {
}

private function getQ42() {
$item = Item::newEmpty();
$item = new Item();
$item->setId( new ItemId('Q42'));
$item->getFingerprint()->setLabel('en', 'Douglas Adams');
$item->getFingerprint()->setDescription('en', 'Author');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function testFormatterFormatWikibaseProperty() {
}

private function getQ42() {
$item = Item::newEmpty();
$item = new Item();
$item->setId( new ItemId('Q42'));
$item->getFingerprint()->setLabel('en', 'Douglas Adams');

Expand Down