Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
bug #1231 PHP7.4 deprecates first implode parameter being pieces, sec…
Browse files Browse the repository at this point in the history
…ond glue (wimg)

This PR was merged into the 6.2-dev branch.

Discussion
----------

PHP7.4 deprecates first implode parameter being pieces, second glue

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| Doc update?   | no
| BC breaks?    | no
| Deprecations? | yes
| Fixed tickets |
| License       | MIT

PHP 7.4 deprecates in the implode function the use of the 'pieces' parameter as the first parameter and the 'glue' parameter as the second parameter.

Commits
-------

702a9d7 PHP7.4 deprecates first implode parameter being pieces, second glue
  • Loading branch information
fabpot committed Nov 12, 2019
2 parents a53dab2 + 702a9d7 commit 49d02c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swiftmailer_generate_mimes_config.php 100755 → 100644
Expand Up @@ -173,7 +173,7 @@ function generateUpToDateMimeArray()
ksort($valid_mime_types);

// combine mime types and extensions array
$output = "$preamble\$swift_mime_types = array(\n ".implode($valid_mime_types, ",\n ")."\n);";
$output = "$preamble\$swift_mime_types = array(\n ".implode(",\n ", $valid_mime_types)."\n);";

// write mime_types.php config file
@file_put_contents('./mime_types.php', $output);
Expand Down

0 comments on commit 49d02c4

Please sign in to comment.