mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
redefine reopen() in class \OC\Session\Internal to avoid accidental calls in productive code
This commit is contained in:
parent
153eadd753
commit
effea790c7
1 changed files with 3 additions and 0 deletions
|
|
@ -54,4 +54,7 @@ class Internal extends Memory {
|
|||
parent::close();
|
||||
}
|
||||
|
||||
public function reopen() {
|
||||
throw new \Exception('The session cannot be reopened - reopen() is ony to be used in unit testing.');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue