Skip to content

Commit

Permalink
Revert "Bump min version to 7.2"
Browse files Browse the repository at this point in the history
This reverts commit d02b28f.
  • Loading branch information
nicolas-grekas committed Dec 8, 2020
1 parent f7d2961 commit ebcacbc
Show file tree
Hide file tree
Showing 58 changed files with 80 additions and 73 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/.php_cs.cache
/.phpunit
/.phpunit.result.cache
/build/*
/composer.lock
/phpunit.xml
Expand Down
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,18 @@ before_script:

script: ./vendor/bin/simple-phpunit

env:
global:
- SYMFONY_PHPUNIT_REMOVE_RETURN_TYPEHINT=1

matrix:
include:
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: 7.4
- php: nightly #php 8
- php: 8.0
fast_finish: true

cache:
Expand Down
4 changes: 2 additions & 2 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Changelog
=========

6.3.0 (2020-XX-XX)
6.2.4 (2020-XX-XX)
------------------

* Bump min PHP version to 7.2.5
* Code cleanups

6.2.3 (2019-11-12)
------------------
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
],
"require": {
"php": ">=7.2.5",
"php": ">=7.0.0",
"egulias/email-validator": "^2.0",
"symfony/polyfill-iconv": "^1.0",
"symfony/polyfill-mbstring": "^1.0",
Expand All @@ -36,7 +36,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "6.3-dev"
"dev-master": "6.2-dev"
}
}
}
2 changes: 1 addition & 1 deletion doc/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Swift Mailer is a component based library for sending e-mails from PHP applicati
System Requirements
-------------------

Swift Mailer requires PHP 7.2 or higher (``proc_*`` functions must be
Swift Mailer requires PHP 7.0 or higher (``proc_*`` functions must be
available).

Swift Mailer does not work when used with function overloading as implemented
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
abstract class Swift
{
const VERSION = '6.3.0';
const VERSION = '6.2.4';

public static $initialized = false;
public static $inits = [];
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/Events/SimpleEventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private function prepareBubbleQueue(Swift_Events_EventObject $evt)
$bubbleQueue[] = $listener;
}
}

return $bubbleQueue;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/SwiftMailerSmokeTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
class SwiftMailerSmokeTestCase extends SwiftMailerTestCase
{
protected function setUp(): void
protected function setUp()
{
if (!\defined('SWIFT_SMOKE_TRANSPORT_TYPE')) {
$this->markTestSkipped(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ class Swift_ByteStream_FileByteStreamAcceptanceTest extends \PHPUnit\Framework\T
{
private $_testFile;

protected function setUp(): void
protected function setUp()
{
$this->testFile = sys_get_temp_dir().'/swift-test-file'.__CLASS__;
file_put_contents($this->testFile, 'abcdefghijklm');
}

protected function tearDown(): void
protected function tearDown()
{
unlink($this->testFile);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_CharacterReaderFactory_SimpleCharacterReaderFactoryAcceptanceTest ex
private $factory;
private $prefix = 'Swift_CharacterReader_';

protected function setUp(): void
protected function setUp()
{
$this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_Encoder_Base64EncoderAcceptanceTest extends \PHPUnit\Framework\TestC
private $samplesDir;
private $encoder;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
$this->encoder = new Swift_Encoder_Base64Encoder();
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Swift/Encoder/QpEncoderAcceptanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_Encoder_QpEncoderAcceptanceTest extends \PHPUnit\Framework\TestCase
private $samplesDir;
private $factory;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
$this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_Encoder_Rfc2231EncoderAcceptanceTest extends \PHPUnit\Framework\Test
private $samplesDir;
private $factory;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../_samples/charsets');
$this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Swift_KeyCache_ArrayKeyCacheAcceptanceTest extends \PHPUnit\Framework\Test
private $key1 = 'key1';
private $key2 = 'key2';

protected function setUp(): void
protected function setUp()
{
$this->cache = new Swift_KeyCache_ArrayKeyCache(
new Swift_KeyCache_SimpleKeyCacheInputStream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Swift_KeyCache_DiskKeyCacheAcceptanceTest extends \PHPUnit\Framework\TestC
private $key1;
private $key2;

protected function setUp(): void
protected function setUp()
{
$this->key1 = uniqid(microtime(true), true);
$this->key2 = uniqid(microtime(true), true);
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Swift/Mime/AttachmentAcceptanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Swift_Mime_AttachmentAcceptanceTest extends \PHPUnit\Framework\TestCase
private $headers;
private $emailValidator;

protected function setUp(): void
protected function setUp()
{
$this->cache = new Swift_KeyCache_ArrayKeyCache(
new Swift_KeyCache_SimpleKeyCacheInputStream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_Mime_ContentEncoder_Base64ContentEncoderAcceptanceTest extends \PHPU
private $samplesDir;
private $encoder;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
$this->encoder = new Swift_Mime_ContentEncoder_Base64ContentEncoder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Swift_Mime_ContentEncoder_NativeQpContentEncoderAcceptanceTest extends \PH
*/
protected $encoder;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
$this->encoder = new Swift_Mime_ContentEncoder_NativeQpContentEncoder();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_Mime_ContentEncoder_PlainContentEncoderAcceptanceTest extends \PHPUn
private $samplesDir;
private $encoder;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
$this->encoder = new Swift_Mime_ContentEncoder_PlainContentEncoder('8bit');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ class Swift_Mime_ContentEncoder_QpContentEncoderAcceptanceTest extends \PHPUnit\
private $samplesDir;
private $factory;

protected function setUp(): void
protected function setUp()
{
$this->samplesDir = realpath(__DIR__.'/../../../../_samples/charsets');
$this->factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
}

protected function tearDown(): void
protected function tearDown()
{
Swift_Preferences::getInstance()->setQPDotEscape(false);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Swift/Mime/EmbeddedFileAcceptanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Swift_Mime_EmbeddedFileAcceptanceTest extends \PHPUnit\Framework\TestCase
private $headers;
private $emailValidator;

protected function setUp(): void
protected function setUp()
{
$this->cache = new Swift_KeyCache_ArrayKeyCache(
new Swift_KeyCache_SimpleKeyCacheInputStream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Swift_Mime_HeaderEncoder_Base64HeaderEncoderAcceptanceTest extends \PHPUni
{
private $encoder;

protected function setUp(): void
protected function setUp()
{
$this->encoder = new Swift_Mime_HeaderEncoder_Base64HeaderEncoder();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/acceptance/Swift/Mime/MimePartAcceptanceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Swift_Mime_MimePartAcceptanceTest extends \PHPUnit\Framework\TestCase
private $headers;
private $emailValidator;

protected function setUp(): void
protected function setUp()
{
$this->cache = new Swift_KeyCache_ArrayKeyCache(
new Swift_KeyCache_SimpleKeyCacheInputStream()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Swift_Mime_SimpleMessageAcceptanceTest extends \PHPUnit\Framework\TestCase
{
protected function setUp(): void
protected function setUp()
{
Swift_Preferences::getInstance()->setCharset(null); //TODO: Test with the charset defined
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ abstract class Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest e

abstract protected function initializeBuffer();

protected function setUp(): void
protected function setUp()
{
if (true == getenv('TRAVIS')) {
$this->markTestSkipped(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Swift_Transport_StreamBuffer_BasicSocketAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
{
protected function setUp(): void
protected function setUp()
{
if (!\defined('SWIFT_SMTP_HOST')) {
$this->markTestSkipped(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Swift_Transport_StreamBuffer_ProcessAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
{
protected function setUp(): void
protected function setUp()
{
if (!\defined('SWIFT_SENDMAIL_PATH')) {
$this->markTestSkipped(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Swift_Transport_StreamBuffer_SocketTimeoutTest extends \PHPUnit\Framework\
protected $server;
protected $randomHighPort;

protected function setUp(): void
protected function setUp()
{
if (!\defined('SWIFT_SMTP_HOST')) {
$this->markTestSkipped(
Expand Down Expand Up @@ -56,7 +56,7 @@ public function testTimeoutException()
$this->assertMatchesRegularExpression('/Connection to .* Timed Out/', $e->getMessage());
}

protected function tearDown(): void
protected function tearDown()
{
if ($this->server) {
stream_socket_shutdown($this->server, STREAM_SHUT_RDWR);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Swift_Transport_StreamBuffer_SslSocketAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
{
protected function setUp(): void
protected function setUp()
{
$streams = stream_get_transports();
if (!\in_array('ssl', $streams)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class Swift_Transport_StreamBuffer_TlsSocketAcceptanceTest extends Swift_Transport_StreamBuffer_AbstractStreamBufferAcceptanceTest
{
protected function setUp(): void
protected function setUp()
{
$streams = stream_get_transports();
if (!\in_array('tls', $streams)) {
Expand Down
2 changes: 1 addition & 1 deletion tests/bug/Swift/Bug118Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Swift_Bug118Test extends \PHPUnit\Framework\TestCase
{
private $message;

protected function setUp(): void
protected function setUp()
{
$this->message = new Swift_Message();
}
Expand Down
2 changes: 1 addition & 1 deletion tests/bug/Swift/Bug206Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Swift_Bug206Test extends \PHPUnit\Framework\TestCase
{
private $factory;

protected function setUp(): void
protected function setUp()
{
$factory = new Swift_CharacterReaderFactory_SimpleCharacterReaderFactory();
$headerEncoder = new Swift_Mime_HeaderEncoder_QpHeaderEncoder(
Expand Down
2 changes: 1 addition & 1 deletion tests/bug/Swift/Bug34Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Swift_Bug34Test extends \PHPUnit\Framework\TestCase
{
protected function setUp(): void
protected function setUp()
{
Swift_Preferences::getInstance()->setCharset('utf-8');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/bug/Swift/Bug35Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class Swift_Bug35Test extends \PHPUnit\Framework\TestCase
{
protected function setUp(): void
protected function setUp()
{
Swift_Preferences::getInstance()->setCharset('utf-8');
}
Expand Down
2 changes: 1 addition & 1 deletion tests/bug/Swift/Bug38Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Swift_Bug38Test extends \PHPUnit\Framework\TestCase
private $attFileName;
private $attFileType;

protected function setUp(): void
protected function setUp()
{
$this->attFileName = 'data.txt';
$this->attFileType = 'text/plain';
Expand Down
4 changes: 2 additions & 2 deletions tests/bug/Swift/Bug51Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class Swift_Bug51Test extends \SwiftMailerTestCase
private $attachmentFile;
private $outputFile;

protected function setUp(): void
protected function setUp()
{
$this->attachmentFile = sys_get_temp_dir().'/attach.rand.bin';
file_put_contents($this->attachmentFile, '');
Expand All @@ -14,7 +14,7 @@ protected function setUp(): void
file_put_contents($this->outputFile, '');
}

protected function tearDown(): void
protected function tearDown()
{
unlink($this->attachmentFile);
unlink($this->outputFile);
Expand Down
2 changes: 1 addition & 1 deletion tests/bug/Swift/Bug71Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Swift_Bug71Test extends \PHPUnit\Framework\TestCase
{
private $message;

protected function setUp(): void
protected function setUp()
{
$this->message = new Swift_Message('test');
}
Expand Down
Loading

0 comments on commit ebcacbc

Please sign in to comment.