Implicitly marking parameter $... as nullable is deprecated in php8.4, the explicit nullable type must be used instead Created with autofix from Ide15839e98a6229c22584d1c1c88c690982e1d7a Break one long line in SpecialPage.php Bug: T376276 Change-Id: I807257b2ba1ab2744ab74d9572c9c3d3ac2a968e
23 lines
373 B
PHP
23 lines
373 B
PHP
<?php
|
|
|
|
namespace MediaWiki\Installer;
|
|
|
|
use MediaWiki\Status\Status;
|
|
use Wikimedia\Rdbms\Database;
|
|
|
|
/**
|
|
* @internal
|
|
*/
|
|
class ConnectionStatus extends Status {
|
|
public function __construct( ?Database $db = null ) {
|
|
$this->value = $db;
|
|
}
|
|
|
|
public function setDB( Database $db ) {
|
|
$this->value = $db;
|
|
}
|
|
|
|
public function getDB(): Database {
|
|
return $this->value;
|
|
}
|
|
}
|