Skip to content

Commit

Permalink
Re-run Rector
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Sep 6, 2023
1 parent 6ba112a commit d3feca4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions spec/Handler/Writer/MailSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand All @@ -31,7 +31,7 @@
);
});

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

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

Expand Down Expand Up @@ -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);
Expand Down
18 changes: 9 additions & 9 deletions spec/Middleware/MezzioSpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -227,7 +227,7 @@
$this->renderer
));

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

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

Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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'] = [
Expand Down

0 comments on commit d3feca4

Please sign in to comment.