Closed s1lver closed 5 years ago
If you use setConnectionArgs and not ask the last argument, the error occurs types to be transferred.
setConnectionArgs
$services = new ServiceLocator(); $imap = new Imap(ArrayHelper::getValue(Yii::$app->params, 'TEST', [])); $services->set('imap', $imap); $imap->createConnection(); $imap->setConnectionArgs(OP_READONLY);
https://www.php.net/manual/en/function.imap-open.php
If you use
setConnectionArgs
and not ask the last argument, the error occurs types to be transferred.https://www.php.net/manual/en/function.imap-open.php