Fix types related issues introduced with 57f33b4
This commit is contained in:
committed by
Diogo Cordeiro
parent
57f33b4328
commit
d95381f8fb
@@ -75,10 +75,10 @@ class Log
|
||||
* @param boolean $printout
|
||||
* @param int $runlevel (optional)
|
||||
*/
|
||||
public function __construct($printout = false, int $runlevel = self::LEVEL_INFO)
|
||||
public function __construct($printout = false, ?int $runlevel = self::LEVEL_INFO)
|
||||
{
|
||||
$this->printout = (bool)$printout;
|
||||
$this->runlevel = (int)$runlevel;
|
||||
$this->printout = (bool) $printout;
|
||||
$this->runlevel = (int) ($runlevel ?? 0);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user