checkSapi = $checkSapi; } /** * Can session be started or not. * * @return bool */ public function check() : bool { return !($this->checkSapi && PHP_SAPI === 'cli'); } }