mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-03 06:27:02 +03:00
there's not type hint 'resource' (bug in my converter)
https://wiki.php.net/rfc/scalar_type_hints#type_hint_choices
This commit is contained in:
parent
69a33c0c25
commit
690190bb26
8 changed files with 12 additions and 11 deletions
|
|
@ -140,8 +140,8 @@ class HeaderCollection extends \MailSo\Base\Collection
|
|||
$aResult = $this->FilterList(function ($oHeader) use ($sHeaderName) {
|
||||
return $oHeader && \strtolower($oHeader->Name()) !== \strtolower($sHeaderName);
|
||||
});
|
||||
|
||||
return $this->SetAsArray($aResult);
|
||||
$this->SetAsArray($aResult);
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -5376,7 +5376,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
* @throws \MailSo\Net\Exceptions\ConnectionException
|
||||
*/
|
||||
private function smtpSendMessage(\RainLoop\Model\Account $oAccount, \MailSo\Mime\Message $oMessage,
|
||||
resource &$rMessageStream, int &$iMessageStreamSize, bool $bDsn = false, bool $bAddHiddenRcpt = true)
|
||||
/*resource*/ &$rMessageStream, int &$iMessageStreamSize, bool $bDsn = false, bool $bAddHiddenRcpt = true)
|
||||
{
|
||||
$oRcpt = $oMessage->GetRcpt();
|
||||
if ($oRcpt && 0 < $oRcpt->Count())
|
||||
|
|
@ -6958,7 +6958,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
return $this->DefaultResponse(__FUNCTION__, $mResponse);
|
||||
}
|
||||
|
||||
private function importContactsFromCsvFile(\RainLoop\Model\Account $oAccount, resource $rFile, string $sFileStart) : int
|
||||
private function importContactsFromCsvFile(\RainLoop\Model\Account $oAccount, /*resource*/ $rFile, string $sFileStart) : int
|
||||
{
|
||||
$iCount = 0;
|
||||
$aHeaders = null;
|
||||
|
|
@ -7011,7 +7011,7 @@ NewThemeLink IncludeCss LoadingDescriptionEsc TemplatesLink LangLink IncludeBack
|
|||
return $iCount;
|
||||
}
|
||||
|
||||
private function importContactsFromVcfFile(\RainLoop\Model\Account $oAccount, resource $rFile) : int
|
||||
private function importContactsFromVcfFile(\RainLoop\Model\Account $oAccount, /*resource*/ $rFile) : int
|
||||
{
|
||||
$iCount = 0;
|
||||
if ($oAccount && \is_resource($rFile))
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ class Files extends \RainLoop\Providers\AbstractProvider
|
|||
$this->oDriver = $oDriver;
|
||||
}
|
||||
|
||||
public function PutFile(\RainLoop\Model\Account $oAccount, string $sKey, resource $rSource) : bool
|
||||
public function PutFile(\RainLoop\Model\Account $oAccount, string $sKey, /*resource*/ $rSource) : bool
|
||||
{
|
||||
return $this->oDriver->PutFile($oAccount, $sKey, $rSource);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class FileStorage implements \RainLoop\Providers\Files\IFiles
|
|||
return $this->generateFullFileName($oAccount, $sKey, true);
|
||||
}
|
||||
|
||||
public function PutFile(\RainLoop\Model\Account $oAccount, string $sKey, resource $rSource) : bool
|
||||
public function PutFile(\RainLoop\Model\Account $oAccount, string $sKey, /*resource*/ $rSource) : bool
|
||||
{
|
||||
$bResult = false;
|
||||
if ($rSource)
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ interface IFiles
|
|||
{
|
||||
public function GenerateLocalFullFileName(\RainLoop\Model\Account $oAccount, string $sKey) : string;
|
||||
|
||||
public function PutFile(\RainLoop\Model\Account $oAccount, string $sKey, resource $rSource) : bool;
|
||||
public function PutFile(\RainLoop\Model\Account $oAccount, string $sKey, /*resource*/ $rSource) : bool;
|
||||
|
||||
public function MoveUploadedFile(\RainLoop\Model\Account $oAccount, string $sKey, string $sSource) : bool;
|
||||
|
||||
|
|
|
|||
|
|
@ -172,7 +172,7 @@ class ServiceActions
|
|||
{
|
||||
error_log($oException->getMessage());
|
||||
if ($e = $oException->getPrevious()) {
|
||||
error_log("\t".$e->getMessage());
|
||||
error_log("\t{$e->getMessage()} @ {$e->getFile()}#{$e->getLine()}");
|
||||
}
|
||||
|
||||
$aResponseItem = $this->oActions->ExceptionResponse(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue