Skip to content

Commit a65bc16

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#2699: Removed void return type
1 parent 25e2fac commit a65bc16

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

app/code/Magento/Braintree/Test/Unit/Gateway/Request/VaultCaptureDataBuilderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testBuild()
111111
* @expectedException \Magento\Payment\Gateway\Command\CommandException
112112
* @expectedExceptionMessage The Payment Token is not available to perform the request.
113113
*/
114-
public function testBuildWithoutPaymentToken(): void
114+
public function testBuildWithoutPaymentToken()
115115
{
116116
$amount = 30.00;
117117
$buildSubject = [

dev/tests/integration/testsuite/Magento/Framework/Code/Generator/AutoloaderTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ private function getTestFrameworkObjectManager()
3131
/**
3232
* @before
3333
*/
34-
public function setupLoggerTestDouble(): void
34+
public function setupLoggerTestDouble()
3535
{
3636
$loggerTestDouble = $this->createMock(LoggerInterface::class);
3737
$this->getTestFrameworkObjectManager()->addSharedInstance($loggerTestDouble, MagentoMonologLogger::class);
@@ -40,7 +40,7 @@ public function setupLoggerTestDouble(): void
4040
/**
4141
* @after
4242
*/
43-
public function removeLoggerTestDouble(): void
43+
public function removeLoggerTestDouble()
4444
{
4545
$this->getTestFrameworkObjectManager()->removeSharedInstance(MagentoMonologLogger::class);
4646
}
@@ -58,7 +58,7 @@ private function createExceptionThrowingGeneratorTestDouble(\RuntimeException $t
5858
return $generatorStub;
5959
}
6060

61-
public function testLogsExceptionDuringGeneration(): void
61+
public function testLogsExceptionDuringGeneration()
6262
{
6363
$exceptionMessage = 'Test exception thrown during generation';
6464
$testException = new \RuntimeException($exceptionMessage);
@@ -70,7 +70,7 @@ public function testLogsExceptionDuringGeneration(): void
7070
$this->assertNull($autoloader->load(NonExistingClassName::class));
7171
}
7272

73-
public function testFiltersDuplicateExceptionMessages(): void
73+
public function testFiltersDuplicateExceptionMessages()
7474
{
7575
$exceptionMessage = 'Test exception thrown during generation';
7676
$testException = new \RuntimeException($exceptionMessage);

lib/internal/Magento/Framework/Code/Generator/Autoloader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function load($className)
6262
*
6363
* @param \Exception $exception
6464
*/
65-
private function tryToLogExceptionMessageIfNotDuplicate(\Exception $exception): void
65+
private function tryToLogExceptionMessageIfNotDuplicate(\Exception $exception)
6666
{
6767
if ($this->lastGenerationErrorMessage !== $exception->getMessage()) {
6868
$this->lastGenerationErrorMessage = $exception->getMessage();
@@ -84,7 +84,7 @@ private function tryToLogExceptionMessageIfNotDuplicate(\Exception $exception):
8484
* @param \Exception $exception
8585
* @return void
8686
*/
87-
private function tryToLogException(\Exception $exception): void
87+
private function tryToLogException(\Exception $exception)
8888
{
8989
try {
9090
$logger = ObjectManager::getInstance()->get(LoggerInterface::class);

0 commit comments

Comments
 (0)