mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-25 11:38:44 +02:00
N°8851 - Explicit nullable in functions parameters
This commit is contained in:
@@ -16,7 +16,7 @@ class Status
|
||||
* @throws \DictExceptionUnknownLanguage
|
||||
* @throws \MySQLException
|
||||
*/
|
||||
public function __construct(Config $oConfig = null)
|
||||
public function __construct(?Config $oConfig = null)
|
||||
{
|
||||
$this->StatusStartup($oConfig);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ class Status
|
||||
* @throws \DictExceptionUnknownLanguage
|
||||
* @throws \MySQLException
|
||||
*/
|
||||
private function StatusStartup(Config $oConfig = null)
|
||||
private function StatusStartup(?Config $oConfig = null)
|
||||
{
|
||||
$this->StatusCheckConfigFile();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user