Skip to content

Commit 742b0ab

Browse files
committed
Merge pull request #628 from wmde/self
Use "self" keyword to refer to own class name
2 parents a8d6465 + 3a6c0f0 commit 742b0ab

9 files changed

Lines changed: 9 additions & 9 deletions

File tree

src/Entity/EntityRedirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function getTargetId() {
5656
}
5757

5858
/**
59-
* @param EntityRedirect $that
59+
* @param mixed $that
6060
*
6161
* @return bool
6262
*/

src/Entity/Item.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public function hasSiteLinks() {
238238
/**
239239
* @deprecated since 2.5, use new Item() instead.
240240
*
241-
* @return Item
241+
* @return self
242242
*/
243243
public static function newEmpty() {
244244
return new self();

src/Entity/ItemId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function unserialize( $value ) {
7575
*
7676
* @param int|float|string $numericId
7777
*
78-
* @return ItemId
78+
* @return self
7979
* @throws InvalidArgumentException
8080
*/
8181
public static function newFromNumber( $numericId ) {

src/Entity/Property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function getType() {
183183
* @param string $dataTypeId The data type of the property. Not to be confused with the data
184184
* value type.
185185
*
186-
* @return Property
186+
* @return self
187187
*/
188188
public static function newFromType( $dataTypeId ) {
189189
return new self( null, null, $dataTypeId );

src/Entity/PropertyId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function unserialize( $value ) {
7575
*
7676
* @param int|float|string $numericId
7777
*
78-
* @return PropertyId
78+
* @return self
7979
* @throws InvalidArgumentException
8080
*/
8181
public static function newFromNumber( $numericId ) {

src/Statement/StatementGuid.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function getSerialization() {
6666
}
6767

6868
/**
69-
* @param StatementGuid $target
69+
* @param mixed $target
7070
*
7171
* @return bool
7272
*/

src/Term/AliasGroupList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function getByLanguage( $languageCode ) {
9191
*
9292
* @param string[] $languageCodes
9393
*
94-
* @return AliasGroupList
94+
* @return self
9595
*/
9696
public function getWithLanguages( array $languageCodes ) {
9797
return new self( array_intersect_key( $this->groups, array_flip( $languageCodes ) ) );

src/Term/Fingerprint.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Fingerprint implements Comparable, LabelsProvider, DescriptionsProvider, A
2222
/**
2323
* @deprecated since 2.5, use new Fingerprint() instead.
2424
*
25-
* @return Fingerprint
25+
* @return self
2626
*/
2727
public static function newEmpty() {
2828
return new self();

src/Term/TermList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function getByLanguage( $languageCode ) {
9494
*
9595
* @param string[] $languageCodes
9696
*
97-
* @return TermList
97+
* @return self
9898
*/
9999
public function getWithLanguages( array $languageCodes ) {
100100
return new self( array_intersect_key( $this->terms, array_flip( $languageCodes ) ) );

0 commit comments

Comments
 (0)