diff --git a/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php b/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php index b478d039..a1f72d8a 100644 --- a/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php +++ b/src/Ratchet/Session/Storage/Proxy/VirtualProxy.php @@ -26,7 +26,7 @@ public function __construct(\SessionHandlerInterface $handler) { /** * {@inheritdoc} */ - public function getId() { + public function getId(): string { return $this->_sessionId; } @@ -40,7 +40,7 @@ public function setId($id) { /** * {@inheritdoc} */ - public function getName() { + public function getName(): string { return $this->_sessionName; } diff --git a/src/Ratchet/Session/Storage/VirtualSessionStorage.php b/src/Ratchet/Session/Storage/VirtualSessionStorage.php index daa10bba..a18c5dea 100644 --- a/src/Ratchet/Session/Storage/VirtualSessionStorage.php +++ b/src/Ratchet/Session/Storage/VirtualSessionStorage.php @@ -25,7 +25,7 @@ public function __construct(\SessionHandlerInterface $handler, $sessionId, Handl /** * {@inheritdoc} */ - public function start() { + public function start(): bool { if ($this->started && !$this->closed) { return true; } @@ -51,7 +51,7 @@ public function start() { /** * {@inheritdoc} */ - public function regenerate($destroy = false, $lifetime = null) { + public function regenerate($destroy = false, $lifetime = null): bool { // .. ? }