Skip to content

Commit 5efa96e

Browse files
committed
update rector
1 parent eb6fe0c commit 5efa96e

File tree

11 files changed

+22
-22
lines changed

11 files changed

+22
-22
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"phpstan/phpstan": "^0.12.90",
7373
"phpstan/phpstan-webmozart-assert": "^0.12.7",
7474
"pimple/pimple": "^3.2",
75-
"rector/rector": "^0.11.39",
75+
"rector/rector": "^0.11.43",
7676
"symfony/dependency-injection": "^5.0"
7777
},
7878
"suggest": {

rector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
return static function (ContainerConfigurator $containerConfigurator): void {
1414
$containerConfigurator->import(SetList::CODE_QUALITY);
15-
$containerConfigurator->import(SetList::CODE_QUALITY_STRICT);
1615
$containerConfigurator->import(SetList::CODING_STYLE);
1716
$containerConfigurator->import(SetList::DEAD_CODE);
1817
$containerConfigurator->import(SetList::NAMING);

spec/Handler/LoggingFactorySpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515

1616
describe('LoggingFactorySpec', function (): void {
1717

18-
given('factory', fn() => new LoggingFactory());
18+
given('factory', fn() : LoggingFactory => new LoggingFactory());
1919

20-
given('config', fn() => [
20+
given('config', fn() : array => [
2121
'log' => [
2222
'ErrorHeroModuleLogger' => [
2323
'writers' => [

spec/Handler/LoggingSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
$this->logger->addWriter($this->dbWriter);
107107
});
108108

109-
given('logging', fn() => new Logging(
109+
given('logging', fn() : Logging => new Logging(
110110
$this->logger,
111111
$this->errorHeroModuleLocalConfig,
112112
$this->logWritersConfig,

spec/Handler/Writer/Checker/DbSpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
];
5151
});
5252

53-
given('writerHandler', fn() => new Db(
53+
given('writerHandler', fn() : \ErrorHeroModule\Handler\Writer\Checker\Db => new Db(
5454
$this->dbWriter,
5555
$this->configLoggingSettings,
5656
$this->logWritersConfig

spec/Listener/MvcFactorySpec.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
describe('MvcFactory', function (): void {
1313

14-
given('factory', fn() => new MvcFactory());
14+
given('factory', fn() : MvcFactory => new MvcFactory());
1515

1616
describe('__invoke()', function (): void {
1717

spec/Listener/MvcSpec.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@
2525

2626
describe('Mvc', function (): void {
2727

28-
given('logging', fn() => Double::instance([
28+
given('logging', fn() : object => Double::instance([
2929
'extends' => Logging::class,
3030
'methods' => '__construct'
3131
]));
3232

33-
given('renderer', fn() => Double::instance(['extends' => PhpRenderer::class, 'methods' => '__construct']));
33+
given('renderer', fn() : object => Double::instance(['extends' => PhpRenderer::class, 'methods' => '__construct']));
3434

35-
given('config', fn() => [
35+
given('config', fn() : array => [
3636
'enable' => true,
3737
'display-settings' => [
3838

@@ -79,7 +79,7 @@
7979
],
8080
]);
8181

82-
given('listener', fn() => new Mvc(
82+
given('listener', fn() : Mvc => new Mvc(
8383
$this->config,
8484
$this->logging,
8585
$this->renderer

spec/Middleware/MezzioFactorySpec.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525

2626
describe('MezzioFactory', function (): void {
2727

28-
given('factory', fn() => new MezzioFactory());
28+
given('factory', fn() : MezzioFactory => new MezzioFactory());
2929

30-
given('mapCreateContainers', fn() => [
30+
given('mapCreateContainers', fn() : array => [
3131
AuraContainer::class => (new AuraContainerBuilder())->newInstance(),
3232
SymfonyContainerBuilder::class => new SymfonyContainerBuilder(),
3333
AurynInjectorContainer::class => new AurynInjectorContainer(new Injector()),
3434
Psr11PimpleContainer::class => new Psr11PimpleContainer(new PimpleContainer()),
3535
]);
3636

37-
given('config', fn() => [
37+
given('config', fn() : array => [
3838

3939
'db' => [
4040
'username' => 'root',

spec/Middleware/MezzioSpec.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
describe('Mezzio', function () {
2727

28-
given('logging', fn() => Double::instance([
28+
given('logging', fn() : object => Double::instance([
2929
'extends' => Logging::class,
3030
'methods' => '__construct'
3131
]));
@@ -85,7 +85,7 @@
8585

8686
});
8787

88-
given('config', fn() => [
88+
given('config', fn() : array => [
8989
'enable' => true,
9090
'display-settings' => [
9191

@@ -151,7 +151,7 @@
151151
],
152152
]);
153153

154-
given('logWritersConfig', fn() => [
154+
given('logWritersConfig', fn() : array => [
155155

156156
[
157157
'name' => 'db',
@@ -208,7 +208,7 @@
208208
);
209209
});
210210

211-
given('request', fn() => new ServerRequest(
211+
given('request', fn() : ServerRequest => new ServerRequest(
212212
[],
213213
[],
214214
new Uri('http://example.com'),
@@ -221,7 +221,7 @@
221221
'1.2'
222222
));
223223

224-
given('middleware', fn() => new Mezzio(
224+
given('middleware', fn() : Mezzio => new Mezzio(
225225
$this->config,
226226
$this->logging,
227227
$this->renderer

spec/ModuleSpec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
describe('Module', function (): void {
1919

20-
given('module', fn() => new Module());
20+
given('module', fn() : Module => new Module());
2121

22-
given('config', fn() => [
22+
given('config', fn() : array => [
2323
'log' => [
2424
'ErrorHeroModuleLogger' => [
2525
'writers' => [

0 commit comments

Comments
 (0)