}
/**
- * @param string|number $sectionId
+ * @param string|int $sectionId
*
* @return Content|bool|null
*
}
/**
- * @param string|number|null|bool $sectionId
+ * @param string|int|null|bool $sectionId
* @param Content $with
* @param string $sectionTitle
*
* @see Content::replaceSection()
*/
public function replaceSection( $sectionId, Content $with, $sectionTitle = '' ) {
-
$myModelId = $this->getModel();
$sectionModelId = $with->getModel();
$text = $this->getNativeData();
$pst = $wgParser->preSaveTransform( $text, $title, $user, $popts );
- rtrim( $pst );
return ( $text === $pst ) ? $this : new static( $pst );
}