From d3feca499bd7d29b5cdf34cb56b98800b35437e9 Mon Sep 17 00:00:00 2001 From: Abdul Malik Ikhsan Date: Thu, 7 Sep 2023 02:43:08 +0700 Subject: [PATCH] Re-run Rector --- spec/Handler/Writer/MailSpec.php | 6 +++--- spec/Middleware/MezzioSpec.php | 18 +++++++++--------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/spec/Handler/Writer/MailSpec.php b/spec/Handler/Writer/MailSpec.php index bc94b73c..142e3aec 100644 --- a/spec/Handler/Writer/MailSpec.php +++ b/spec/Handler/Writer/MailSpec.php @@ -10,7 +10,7 @@ use ReflectionProperty; use Throwable; -describe('Mail', function () { +describe('Mail', function (): void { beforeAll(function (): void { $this->mailMessage = Double::instance(['extends' => Message::class]); @@ -31,7 +31,7 @@ ); }); - describe('->shutdown', function () { + describe('->shutdown', function (): void { it('bring multiple collection upload, then transport->send()', function (): void { @@ -108,7 +108,7 @@ }); - it('transport->send() trigger error', function () { + it('transport->send() trigger error', function (): void { $r = new ReflectionProperty($this->writer, 'eventsToMail'); $r->setAccessible(true); diff --git a/spec/Middleware/MezzioSpec.php b/spec/Middleware/MezzioSpec.php index 5c0774a0..ad70a737 100644 --- a/spec/Middleware/MezzioSpec.php +++ b/spec/Middleware/MezzioSpec.php @@ -23,7 +23,7 @@ use Psr\Http\Message\ResponseInterface; use Psr\Http\Server\RequestHandlerInterface; -describe('Mezzio', function () { +describe('Mezzio', function (): void { given('logging', fn() : object => Double::instance([ 'extends' => Logging::class, @@ -227,7 +227,7 @@ $this->renderer )); - describe('->process()', function () { + describe('->process()', function (): void { it('returns handle() when not enabled', function (): void { @@ -254,9 +254,9 @@ }); - context('error', function () { + context('error', function (): void { - it('non-xmlhttprequest: returns error page on display_errors = 0', function () { + it('non-xmlhttprequest: returns error page on display_errors = 0', function (): void { $config = $this->config; $config['display-settings']['display_errors'] = 0; @@ -285,7 +285,7 @@ }); - it('non-xmlhttprequest: shows error on display_errors = 1', function () { + it('non-xmlhttprequest: shows error on display_errors = 1', function (): void { $config = $this->config; $config['display-settings']['display_errors'] = 1; @@ -312,7 +312,7 @@ }); - it('passed renderer is null returns error message on display_errors = 0', function () { + it('passed renderer is null returns error message on display_errors = 0', function (): void { $config = $this->config; $config['display-settings']['display_errors'] = 0; @@ -349,7 +349,7 @@ }); - it('xmlhttprequest: returns error page on display_errors = 0', function () { + it('xmlhttprequest: returns error page on display_errors = 0', function (): void { $config = $this->config; $config['display-settings']['display_errors'] = 0; @@ -386,7 +386,7 @@ }); - it('xmlhttprequest: shows error on display_errors = 1', function () { + it('xmlhttprequest: shows error on display_errors = 1', function (): void { $config = $this->config; $config['display-settings']['display_errors'] = 1; @@ -418,7 +418,7 @@ }); - it('do not call logging->handleErrorException() if $e->getParam("exception") and has excluded exception match', function () { + it('do not call logging->handleErrorException() if $e->getParam("exception") and has excluded exception match', function (): void { $config = $this->config; $config['display-settings']['exclude-exceptions'] = [