Method regenerateId
has 29 lines of code (exceeds 25 allowed). Consider refactoring.
public function regenerateId()
{
$oldSessionId = $this->getSessionId();
if (version_compare(PHP_VERSION, '7.1.0', '>=')) {
$newSessionId = session_create_id();
Function configureIniSettings
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
private function configureIniSettings()
{
/**
* Ignore these lines from code coverage as they are covered in build
* tests against different PHP versions.
Missing class import via use statement (line '282', column '27').
throw new \RuntimeException(
Missing class import via use statement (line '127', column '23').
throw new \OutOfBoundsException(
Missing class import via use statement (line '221', column '23').
throw new \InvalidArgumentException('Value must be integer.');
Missing class import via use statement (line '84', column '23').
throw new \OutOfBoundsException(
Missing class import via use statement (line '261', column '23').
throw new \InvalidArgumentException(
Missing class import via use statement (line '59', column '23').
throw new \Exception(
Missing class import via use statement (line '146', column '23').
throw new \InvalidArgumentException(
Missing class import via use statement (line '85', column '23').
throw new \InvalidArgumentException('Value did not match session ID regex.');
Missing class import via use statement (line '248', column '23').
throw new \InvalidArgumentException('Value must be string.');
Missing class import via use statement (line '103', column '23').
throw new \InvalidArgumentException(
Missing class import via use statement (line '133', column '23').
throw new \InvalidArgumentException('Value must be integer.');
Missing class import via use statement (line '209', column '23').
throw new \InvalidArgumentException('Value must be boolean.');
Missing class import via use statement (line '33', column '23').
throw new \InvalidArgumentException('Value must be boolean.');
Missing class import via use statement (line '234', column '23').
throw new \InvalidArgumentException(
Missing class import via use statement (line '150', column '23').
throw new \RuntimeException('session_start() unexpectedly failed.');
Missing class import via use statement (line '348', column '23').
throw new \RuntimeException(