Skip to content

Commit

Permalink
Session: used static access to $started (#104)
Browse files Browse the repository at this point in the history
Deprecated error was triggered.
$this->started instead of self::$started
  • Loading branch information
adaamz authored and dg committed Sep 26, 2016
1 parent 487864c commit 2bb5f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ private function configure(array $config)

} else {
if (session_status() === PHP_SESSION_ACTIVE) {
throw new Nette\InvalidStateException("Unable to set 'session.$key' to value '$value' when session has been started" . ($this->started ? '.' : ' by session.auto_start or session_start().'));
throw new Nette\InvalidStateException("Unable to set 'session.$key' to value '$value' when session has been started" . (self::$started ? '.' : ' by session.auto_start or session_start().'));
}
if (isset($special[$key])) {
$key = "session_$key";
Expand Down

0 comments on commit 2bb5f9f

Please sign in to comment.