Merge "Add type hint against LinkTarget"
This commit is contained in:
commit
40a628a501
1 changed files with 2 additions and 6 deletions
8
includes/cache/LinkBatch.php
vendored
8
includes/cache/LinkBatch.php
vendored
|
|
@ -58,12 +58,8 @@ class LinkBatch {
|
|||
/**
|
||||
* @param LinkTarget $linkTarget
|
||||
*/
|
||||
public function addObj( $linkTarget ) {
|
||||
if ( is_object( $linkTarget ) ) {
|
||||
$this->add( $linkTarget->getNamespace(), $linkTarget->getDBkey() );
|
||||
} else {
|
||||
wfDebug( "Warning: LinkBatch::addObj got invalid LinkTarget object\n" );
|
||||
}
|
||||
public function addObj( LinkTarget $linkTarget ) {
|
||||
$this->add( $linkTarget->getNamespace(), $linkTarget->getDBkey() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue