Skip to content

Commit

Permalink
Standards
Browse files Browse the repository at this point in the history
  • Loading branch information
Synchro committed May 27, 2019
1 parent e86a427 commit 7932f2d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/PHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3052,8 +3052,9 @@ protected function encodeFile($path, $encoding = self::ENCODING_BASE64)
* @param string $str The text to encode
* @param string $encoding The encoding to use; one of 'base64', '7bit', '8bit', 'binary', 'quoted-printable'
*
* @return string
* @throws Exception
*
* @return string
*/
public function encodeString($str, $encoding = self::ENCODING_BASE64)
{
Expand Down Expand Up @@ -3353,7 +3354,7 @@ public function addStringAttachment(
$this->attachment[] = [
0 => $string,
1 => $filename,
2 => basename($filename),
2 => static::mb_pathinfo($filename, PATHINFO_EXTENSION),
3 => $encoding,
4 => $type,
5 => true, // isStringAttachment
Expand Down

0 comments on commit 7932f2d

Please sign in to comment.