fix phpcs

This commit is contained in:
Dennis Eichhorn 2019-12-21 22:10:11 +01:00
parent 792fcf900a
commit bdeca100d5

View File

@ -101,7 +101,11 @@ final class ConsoleSessionHandler implements \SessionHandlerInterface, \SessionI
*/
public function read($id)
{
return (string) @\file_get_contents($this->savePath . '/sess_' . $id);
if (!\file_exists($this->savePath . '/sess_' . $id)) {
return '';
}
return (string) \file_get_contents($this->savePath . '/sess_' . $id);
}
/**