mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +03:00
More functions without type hinting found and fixt
Use PECL yaml (else Spyc) Upgrade Spyc (with removed dump code)
This commit is contained in:
parent
cd3d8b94b2
commit
75b4b64118
43 changed files with 893 additions and 1482 deletions
|
|
@ -411,21 +411,19 @@ abstract class NetClient
|
|||
}
|
||||
|
||||
/**
|
||||
* @param mixed $mReadLen = null
|
||||
*
|
||||
* @throws \MailSo\Net\Exceptions\SocketConnectionDoesNotAvailableException
|
||||
* @throws \MailSo\Net\Exceptions\SocketReadException
|
||||
*/
|
||||
protected function getNextBuffer($mReadLen = null, bool $bForceLogin = false) : void
|
||||
protected function getNextBuffer(?int $iReadLen = null, bool $bForceLogin = false) : void
|
||||
{
|
||||
if (null === $mReadLen)
|
||||
if (null === $iReadLen)
|
||||
{
|
||||
$this->sResponseBuffer = \fgets($this->rConnect);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->sResponseBuffer = '';
|
||||
$iRead = $mReadLen;
|
||||
$iRead = $iReadLen;
|
||||
while (0 < $iRead)
|
||||
{
|
||||
$sAddRead = \fread($this->rConnect, $iRead);
|
||||
|
|
@ -465,7 +463,7 @@ abstract class NetClient
|
|||
else
|
||||
{
|
||||
$iReadedLen = \strlen($this->sResponseBuffer);
|
||||
if (null === $mReadLen || $bForceLogin)
|
||||
if (null === $iReadLen || $bForceLogin)
|
||||
{
|
||||
$iLimit = 5000; // 5KB
|
||||
if ($iLimit < $iReadedLen)
|
||||
|
|
@ -481,7 +479,7 @@ abstract class NetClient
|
|||
}
|
||||
else
|
||||
{
|
||||
$this->writeLog('Received '.$iReadedLen.'/'.$mReadLen.' bytes.',
|
||||
$this->writeLog('Received '.$iReadedLen.'/'.$iReadLen.' bytes.',
|
||||
\MailSo\Log\Enumerations\Type::INFO);
|
||||
}
|
||||
|
||||
|
|
@ -507,10 +505,7 @@ abstract class NetClient
|
|||
$this->writeLog($sDesc, $iDescType, true);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \Exception $oException
|
||||
*/
|
||||
protected function writeLogException($oException,
|
||||
protected function writeLogException(\Throwable $oException,
|
||||
int $iDescType = \MailSo\Log\Enumerations\Type::NOTICE, bool $bThrowException = false) : void
|
||||
{
|
||||
if ($this->oLogger)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue