: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
class wfModuleController {
public static function shared() {
if ($_shared === false) {
$_shared = new wfModuleController();
public function __construct() {
$this->_optionIndexes = array();
$this->_optionBlocks = array();
public function __get($key) {
return $this->_optionIndexes;
return $this->_optionBlocks;
throw new OutOfBoundsException('Invalid key');
public function addOptionIndex($target, $text) {
$this->_optionIndexes[$target] = $text;
public function addOptionBlock($html) {
$this->_optionBlocks[] = $html;