Fix types related issues introduced with 57f33b4

This commit is contained in:
Alexei Sorokin
2019-11-16 16:09:09 +00:00
committed by Diogo Cordeiro
parent 57f33b4328
commit d95381f8fb
3 changed files with 29 additions and 29 deletions

View File

@@ -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);
}
/**