diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/php_errors_log_levels.php b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/php_errors_log_levels.php index e4560ac45f..620a5871e0 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/php_errors_log_levels.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/php/php_errors_log_levels.php @@ -5,6 +5,6 @@ $container->loadFromExtension('framework', [ 'log' => [ \E_NOTICE => \Psr\Log\LogLevel::ERROR, \E_WARNING => \Psr\Log\LogLevel::ERROR, - ] + ], ], ]); diff --git a/src/Symfony/Component/Console/Tests/Input/InputTest.php b/src/Symfony/Component/Console/Tests/Input/InputTest.php index 74309fd36c..060b750f47 100644 --- a/src/Symfony/Component/Console/Tests/Input/InputTest.php +++ b/src/Symfony/Component/Console/Tests/Input/InputTest.php @@ -12,7 +12,6 @@ namespace Symfony\Component\Console\Tests\Input; use PHPUnit\Framework\TestCase; -use Symfony\Component\Console\Exception\InvalidOptionException; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputDefinition; diff --git a/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php b/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php index 80e53b9164..31fdf56ab1 100644 --- a/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php +++ b/src/Symfony/Component/Messenger/Bridge/AmazonSqs/Tests/Transport/AmazonSqsTransportTest.php @@ -96,48 +96,48 @@ class AmazonSqsTransportTest extends TestCase $this->assertInstanceOf(MessageCountAwareInterface::class, $transport); } - public function testItCanGetMessagesViaTheReceiver(): void + public function testItCanGetMessagesViaTheReceiver() { $envelopes = [new Envelope(new \stdClass()), new Envelope(new \stdClass())]; $this->receiver->expects($this->once())->method('get')->willReturn($envelopes); $this->assertSame($envelopes, $this->transport->get()); } - public function testItCanAcknowledgeAMessageViaTheReceiver(): void + public function testItCanAcknowledgeAMessageViaTheReceiver() { $envelope = new Envelope(new \stdClass()); $this->receiver->expects($this->once())->method('ack')->with($envelope); $this->transport->ack($envelope); } - public function testItCanRejectAMessageViaTheReceiver(): void + public function testItCanRejectAMessageViaTheReceiver() { $envelope = new Envelope(new \stdClass()); $this->receiver->expects($this->once())->method('reject')->with($envelope); $this->transport->reject($envelope); } - public function testItCanGetMessageCountViaTheReceiver(): void + public function testItCanGetMessageCountViaTheReceiver() { $messageCount = 15; $this->receiver->expects($this->once())->method('getMessageCount')->willReturn($messageCount); $this->assertSame($messageCount, $this->transport->getMessageCount()); } - public function testItCanSendAMessageViaTheSender(): void + public function testItCanSendAMessageViaTheSender() { $envelope = new Envelope(new \stdClass()); $this->sender->expects($this->once())->method('send')->with($envelope)->willReturn($envelope); $this->assertSame($envelope, $this->transport->send($envelope)); } - public function testItCanSetUpTheConnection(): void + public function testItCanSetUpTheConnection() { $this->connection->expects($this->once())->method('setup'); $this->transport->setup(); } - public function testItConvertsHttpExceptionDuringSetupIntoTransportException(): void + public function testItConvertsHttpExceptionDuringSetupIntoTransportException() { $this->connection ->expects($this->once()) @@ -149,13 +149,13 @@ class AmazonSqsTransportTest extends TestCase $this->transport->setup(); } - public function testItCanResetTheConnection(): void + public function testItCanResetTheConnection() { $this->connection->expects($this->once())->method('reset'); $this->transport->reset(); } - public function testItConvertsHttpExceptionDuringResetIntoTransportException(): void + public function testItConvertsHttpExceptionDuringResetIntoTransportException() { $this->connection ->expects($this->once()) diff --git a/src/Symfony/Component/Notifier/Transport/TransportInterface.php b/src/Symfony/Component/Notifier/Transport/TransportInterface.php index 85cd910a4a..e2f2e94a7b 100644 --- a/src/Symfony/Component/Notifier/Transport/TransportInterface.php +++ b/src/Symfony/Component/Notifier/Transport/TransportInterface.php @@ -12,7 +12,6 @@ namespace Symfony\Component\Notifier\Transport; use Symfony\Component\Notifier\Exception\TransportExceptionInterface; -use Symfony\Component\Notifier\Exception\UnsupportedMessageTypeException; use Symfony\Component\Notifier\Message\MessageInterface; use Symfony\Component\Notifier\Message\SentMessage;