Skip to content

Commit 8064b77

Browse files
fix(app): Update PHPStan annotations and add container configuration file. (#149)
1 parent 34b1933 commit 8064b77

File tree

5 files changed

+19
-5
lines changed

5 files changed

+19
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Bug #141: Move badges for latest stable version and total downloads in `README.md` to `Installation` section (@terabytesoftw)
66
- Bug #143: Add `Available stacks` section with `RoadRunner` badge to `README.md` (@terabytesoftw)
77
- Bug #146: Remove `yiisoft/yii2-symfonymailer` dependency from `composer.json` (@terabytesoftw)
8+
- Bug #149: Update PHPStan annotations and add container configuration file (@terabytesoftw)
89

910
## 0.1.0 August 31, 2025
1011

config/console/app.php

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

55
use app\usecase\hello\HelloController;
66

7-
/** @var string[] $components */
7+
/** @phpstan-var array<string, mixed> $components */
88
$components = require dirname(__DIR__) . '/common/components.php';
9-
/** @var string[] $params */
9+
/** @phpstan-var array<string, mixed> $params */
1010
$params = require dirname(__DIR__) . '/params-console.php';
1111

1212
return [

config/console/container.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [];

config/web/app.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44

55
use app\usecase\site\SiteController;
66

7-
/** @phpstan-var string[] $components */
7+
/** @phpstan-var array<string, mixed> $components */
88
$components = require __DIR__ . '/components.php';
9-
/** @phpstan-var string[] $modules */
9+
/** @phpstan-var array<string, mixed> $container */
10+
$container = require __DIR__ . '/container.php';
11+
/** @phpstan-var array<string, mixed> $modules */
1012
$modules = require __DIR__ . '/modules.php';
11-
/** @phpstan-var string[] $params */
13+
/** @phpstan-var array<string, mixed> $params */
1214
$params = require dirname(__DIR__) . '/params-web.php';
1315

1416
$rootDir = dirname(__DIR__, 2);
@@ -25,6 +27,7 @@
2527
'basePath' => $rootDir,
2628
'bootstrap' => ['log'],
2729
'components' => $components,
30+
'container' => $container,
2831
'controllerMap' => [
2932
'site' => ['class' => SiteController::class],
3033
],

config/web/container.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
return [];

0 commit comments

Comments
 (0)