Skip to content

Commit d3feca4

Browse files
committed
Re-run Rector
1 parent 6ba112a commit d3feca4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

spec/Handler/Writer/MailSpec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
use ReflectionProperty;
1111
use Throwable;
1212

13-
describe('Mail', function () {
13+
describe('Mail', function (): void {
1414

1515
beforeAll(function (): void {
1616
$this->mailMessage = Double::instance(['extends' => Message::class]);
@@ -31,7 +31,7 @@
3131
);
3232
});
3333

34-
describe('->shutdown', function () {
34+
describe('->shutdown', function (): void {
3535

3636
it('bring multiple collection upload, then transport->send()', function (): void {
3737

@@ -108,7 +108,7 @@
108108

109109
});
110110

111-
it('transport->send() trigger error', function () {
111+
it('transport->send() trigger error', function (): void {
112112

113113
$r = new ReflectionProperty($this->writer, 'eventsToMail');
114114
$r->setAccessible(true);

spec/Middleware/MezzioSpec.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Psr\Http\Message\ResponseInterface;
2424
use Psr\Http\Server\RequestHandlerInterface;
2525

26-
describe('Mezzio', function () {
26+
describe('Mezzio', function (): void {
2727

2828
given('logging', fn() : object => Double::instance([
2929
'extends' => Logging::class,
@@ -227,7 +227,7 @@
227227
$this->renderer
228228
));
229229

230-
describe('->process()', function () {
230+
describe('->process()', function (): void {
231231

232232
it('returns handle() when not enabled', function (): void {
233233

@@ -254,9 +254,9 @@
254254

255255
});
256256

257-
context('error', function () {
257+
context('error', function (): void {
258258

259-
it('non-xmlhttprequest: returns error page on display_errors = 0', function () {
259+
it('non-xmlhttprequest: returns error page on display_errors = 0', function (): void {
260260

261261
$config = $this->config;
262262
$config['display-settings']['display_errors'] = 0;
@@ -285,7 +285,7 @@
285285

286286
});
287287

288-
it('non-xmlhttprequest: shows error on display_errors = 1', function () {
288+
it('non-xmlhttprequest: shows error on display_errors = 1', function (): void {
289289

290290
$config = $this->config;
291291
$config['display-settings']['display_errors'] = 1;
@@ -312,7 +312,7 @@
312312

313313
});
314314

315-
it('passed renderer is null returns error message on display_errors = 0', function () {
315+
it('passed renderer is null returns error message on display_errors = 0', function (): void {
316316

317317
$config = $this->config;
318318
$config['display-settings']['display_errors'] = 0;
@@ -349,7 +349,7 @@
349349

350350
});
351351

352-
it('xmlhttprequest: returns error page on display_errors = 0', function () {
352+
it('xmlhttprequest: returns error page on display_errors = 0', function (): void {
353353

354354
$config = $this->config;
355355
$config['display-settings']['display_errors'] = 0;
@@ -386,7 +386,7 @@
386386

387387
});
388388

389-
it('xmlhttprequest: shows error on display_errors = 1', function () {
389+
it('xmlhttprequest: shows error on display_errors = 1', function (): void {
390390

391391
$config = $this->config;
392392
$config['display-settings']['display_errors'] = 1;
@@ -418,7 +418,7 @@
418418

419419
});
420420

421-
it('do not call logging->handleErrorException() if $e->getParam("exception") and has excluded exception match', function () {
421+
it('do not call logging->handleErrorException() if $e->getParam("exception") and has excluded exception match', function (): void {
422422

423423
$config = $this->config;
424424
$config['display-settings']['exclude-exceptions'] = [

0 commit comments

Comments
 (0)