diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b77c7e7..b3b1b526 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ All notable changes to this project will be documented in this file, in reverse ### Removed -- Nothing. +- [#98](https://github.com/laminas/laminas-mail/pull/98) removes `Laminas\Mail\Transport\Null`, as it is unusable with the new minimum supported PHP version (7.1). Users should use `Laminas\Mail\Transport\InMemory` instead. As this has been the default when requesting a "null" transport from `Laminas\Mail\Transport\Factory` for the past several minor releases, end-users should be unaffected. However, **users are encouraged to specify "inmemory" instead of "null" when requiring a no-op transport.** ### Fixed diff --git a/src/Transport/Null.php b/src/Transport/Null.php deleted file mode 100644 index 4f4ff3c5..00000000 --- a/src/Transport/Null.php +++ /dev/null @@ -1,34 +0,0 @@ - 'null' + 'type' => 'inMemory', ]); $transport = Factory::create($spec); diff --git a/test/Transport/NullTest.php b/test/Transport/NullTest.php deleted file mode 100644 index bbf7fc1e..00000000 --- a/test/Transport/NullTest.php +++ /dev/null @@ -1,31 +0,0 @@ -=')) { - $this->markTestSkipped('Cannot test Null transport under PHP 7; reserved keyword'); - } - } - - public function testRaisesNoticeOnInstantiation() - { - $this->expectException('PHPUnit_Framework_Error_Deprecated'); - new NullTransport(); - } -}