Fix PHP 7.4 Deprecate message

This commit is contained in:
RainLoop Team 2020-03-15 22:15:36 +03:00
parent 15ceddc202
commit a250d84025
8 changed files with 27 additions and 27 deletions

View file

@ -102,11 +102,11 @@ class Email
while ($iCurrentIndex < \strlen($sEmailAddress))
{
switch ($sEmailAddress{$iCurrentIndex})
switch ($sEmailAddress[$iCurrentIndex])
{
// case '\'':
case '"':
// $sQuoteChar = $sEmailAddress{$iCurrentIndex};
// $sQuoteChar = $sEmailAddress[$iCurrentIndex];
if ((!$bInName) && (!$bInAddress) && (!$bInComment))
{
$bInName = true;

View file

@ -156,16 +156,16 @@ class EmailCollection extends \MailSo\Base\Collection
while ($iCurrentPos < $sWorkingRecipientsLen)
{
switch ($sWorkingRecipients{$iCurrentPos})
switch ($sWorkingRecipients[$iCurrentPos])
{
case '\'':
case '"':
if (!$bIsInQuotes)
{
$sChQuote = $sWorkingRecipients{$iCurrentPos};
$sChQuote = $sWorkingRecipients[$iCurrentPos];
$bIsInQuotes = true;
}
else if ($sChQuote == $sWorkingRecipients{$iCurrentPos})
else if ($sChQuote == $sWorkingRecipients[$iCurrentPos])
{
$bIsInQuotes = false;
}

View file

@ -111,11 +111,11 @@ class EmailDep
while ($iCurrentIndex < \strlen($sEmailAddress))
{
switch ($sEmailAddress{$iCurrentIndex})
switch ($sEmailAddress[$iCurrentIndex])
{
// case '\'':
case '"':
// $sQuoteChar = $sEmailAddress{$iCurrentIndex};
// $sQuoteChar = $sEmailAddress[$iCurrentIndex];
if ((!$bInName) && (!$bInAddress) && (!$bInComment))
{
$bInName = true;