Use MediaWiki\SuppressWarnings around trigger_error('') instead @