mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Adding return types to Session test classes.
This commit is contained in:
parent
dd11c63069
commit
1c593eea63
2 changed files with 10 additions and 0 deletions
|
@ -12,18 +12,23 @@ class TestAppLibSession implements CakeSessionHandlerInterface {
|
|||
}
|
||||
|
||||
public function close() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function read($id) {
|
||||
return '';
|
||||
}
|
||||
|
||||
public function write($id, $data) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function destroy($id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function gc($expires = null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -12,18 +12,23 @@ class TestPluginSession implements CakeSessionHandlerInterface {
|
|||
}
|
||||
|
||||
public function close() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function read($id) {
|
||||
return '';
|
||||
}
|
||||
|
||||
public function write($id, $data) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function destroy($id) {
|
||||
return true;
|
||||
}
|
||||
|
||||
public function gc($expires = null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue