Skip to content

Commit 02c7a4e

Browse files
authored
Bump PHP to 8.2 and update deps (#355)
1 parent b39313b commit 02c7a4e

File tree

21 files changed

+94
-113
lines changed

21 files changed

+94
-113
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- 'psalm.xml'
1111

1212
push:
13+
branches: ['master']
1314
paths-ignore:
1415
- 'docs/**'
1516
- 'README.md'
@@ -39,9 +40,9 @@ jobs:
3940
- ubuntu-latest
4041
- windows-latest
4142
php:
42-
- "8.1"
4343
- "8.2"
4444
- "8.3"
45+
- "8.4"
4546

4647
steps:
4748
- name: Checkout.

.github/workflows/composer-require-checker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
os: >-
3232
['ubuntu-latest']
3333
php: >-
34-
['8.1', '8.2', '8.3']
34+
['8.2', '8.3', '8.4']

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ jobs:
2020
os: >-
2121
['ubuntu-latest']
2222
php: >-
23-
['8.3']
23+
['8.4']

.github/workflows/static.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
- 'phpunit.xml.dist'
1212

1313
push:
14+
branches: ['master']
1415
paths-ignore:
1516
- 'docs/**'
1617
- 'README.md'
@@ -30,5 +31,5 @@ jobs:
3031
os: >-
3132
['ubuntu-latest']
3233
php: >-
33-
['8.1', '8.2', '8.3']
34+
['8.2', '8.3', '8.4']
3435

.styleci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
preset: psr12
22
risky: true
33

4-
version: 8.1
4+
version: 8.2
55

66
finder:
77
exclude:

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ codecept: run-test
4747
psalm: CMD="./vendor/bin/psalm" ## Run Psalm.
4848
psalm: run
4949

50+
rector: CMD="./vendor/bin/rector" ## Run Rector.
51+
rector: run
52+
5053
build-prod: ## Build an image.
5154
docker build --file docker/Dockerfile --target prod --pull -t ${IMAGE}:${IMAGE_TAG} .
5255

composer.json

Lines changed: 43 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "yiisoft/app",
33
"type": "project",
4-
"description": "Yii 3 application template",
4+
"description": "Yii3 application template",
55
"keywords": [
66
"yii3",
77
"app"
@@ -25,8 +25,6 @@
2525
"url": "https://github.com/sponsors/yiisoft"
2626
}
2727
],
28-
"minimum-stability": "dev",
29-
"prefer-stable": true,
3028
"scripts": {
3129
"serve": [
3230
"Composer\\Config::disableProcessTimeout",
@@ -42,59 +40,56 @@
4240
]
4341
},
4442
"require": {
45-
"php": "^8.1",
43+
"php": "^8.2",
4644
"ext-filter": "*",
4745
"ext-intl": "*",
48-
"httpsoft/http-message": "^1.1",
49-
"psr/container": "^2.0",
50-
"psr/http-message": "^1.1|^2.0",
51-
"psr/http-server-handler": "^1.0",
52-
"symfony/console": "^6.0",
46+
"httpsoft/http-message": "^1.1.6",
47+
"psr/container": "^2.0.2",
48+
"psr/http-message": "^2.0",
49+
"psr/http-server-handler": "^1.0.2",
50+
"symfony/console": "^7.3.1",
5351
"yiisoft/aliases": "^3.0",
54-
"yiisoft/assets": "^4.0",
55-
"yiisoft/cache": "^3.0",
56-
"yiisoft/cache-file": "^3.0",
57-
"yiisoft/config": "^1.1",
58-
"yiisoft/csrf": "^2.0",
59-
"yiisoft/data-response": "^2.0",
60-
"yiisoft/definitions": "^3.0",
61-
"yiisoft/di": "^1.2",
62-
"yiisoft/error-handler": "^4.0",
63-
"yiisoft/factory": "^1.0",
52+
"yiisoft/assets": "^5.1",
53+
"yiisoft/cache": "^3.1",
54+
"yiisoft/cache-file": "^3.2",
55+
"yiisoft/config": "^1.6",
56+
"yiisoft/csrf": "^2.2.2",
57+
"yiisoft/data-response": "^2.1",
58+
"yiisoft/definitions": "^3.4",
59+
"yiisoft/di": "^1.4",
60+
"yiisoft/error-handler": "^4.1",
61+
"yiisoft/factory": "^1.3",
6462
"yiisoft/files": "^2.0",
65-
"yiisoft/html": "^3.0",
63+
"yiisoft/html": "^3.11",
6664
"yiisoft/http": "^1.2",
67-
"yiisoft/i18n": "^1.1",
68-
"yiisoft/log": "^2.1",
65+
"yiisoft/i18n": "^1.2.1",
66+
"yiisoft/log": "^2.1.1",
6967
"yiisoft/log-target-file": "^3.0",
70-
"yiisoft/router": "^3.0",
71-
"yiisoft/router-fastroute": "^3.0",
72-
"yiisoft/translator": "^3.0",
73-
"yiisoft/translator-message-php": "^1.1",
74-
"yiisoft/view": "^12.0",
75-
"yiisoft/yii-console": "^2.0",
76-
"yiisoft/yii-debug": "dev-master",
77-
"yiisoft/yii-event": "^2.0",
78-
"yiisoft/yii-http": "^1.0",
79-
"yiisoft/yii-middleware": "^1.0",
80-
"yiisoft/yii-runner-console": "^2.0",
68+
"yiisoft/router": "^4",
69+
"yiisoft/router-fastroute": "^4.0.1",
70+
"yiisoft/translator": "^3.1",
71+
"yiisoft/translator-message-php": "^1.1.1",
72+
"yiisoft/view": "^12.2",
73+
"yiisoft/yii-console": "^2.3",
74+
"yiisoft/yii-event": "^2.1",
75+
"yiisoft/yii-http": "^1.0.4",
76+
"yiisoft/yii-middleware": "^1.1.0",
77+
"yiisoft/yii-runner-console": "^2.2",
8178
"yiisoft/yii-runner-http": "^3.2",
82-
"yiisoft/yii-view-renderer": "^7.1"
79+
"yiisoft/yii-view-renderer": "^7.3"
8380
},
8481
"require-dev": {
85-
"codeception/c3": "^2.7",
86-
"codeception/codeception": "^5.0",
87-
"codeception/module-asserts": "^3.0",
88-
"codeception/module-cli": "^2.0",
89-
"codeception/module-phpbrowser": "^3.0",
90-
"maglnet/composer-require-checker": "^4.5",
91-
"rector/rector": "^2.0.3",
92-
"roave/infection-static-analysis-plugin": "^1.34",
93-
"roave/security-advisories": "dev-master",
94-
"spatie/phpunit-watcher": "^1.23",
95-
"vimeo/psalm": "^5.20",
96-
"yiisoft/yii-debug-api": "3.0.x-dev",
97-
"yiisoft/yii-debug-viewer": "^3.0@dev"
82+
"codeception/c3": "^2.9",
83+
"codeception/codeception": "^5.3.2",
84+
"codeception/module-asserts": "^3.2",
85+
"codeception/module-cli": "^2.0.1",
86+
"codeception/module-phpbrowser": "^3.0.1",
87+
"maglnet/composer-require-checker": "^4.16.1",
88+
"rector/rector": "^2.1.0",
89+
"roave/infection-static-analysis-plugin": "^1.38",
90+
"roave/security-advisories": "dev-latest",
91+
"spatie/phpunit-watcher": "^1.24",
92+
"vimeo/psalm": "^6.12.1"
9893
},
9994
"autoload": {
10095
"psr-4": {
@@ -107,13 +102,11 @@
107102
}
108103
},
109104
"extra": {
110-
"branch-alias": {
111-
"dev-master": "1.0.x-dev"
112-
},
113105
"config-plugin-file": "configuration.php"
114106
},
115107
"config": {
116108
"sort-packages": true,
109+
"bump-after-update": true,
117110
"allow-plugins": {
118111
"yiisoft/config": true,
119112
"infection/extension-installer": true,

config/common/di/router.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
declare(strict_types=1);
44

55
use Yiisoft\Config\Config;
6-
use Yiisoft\Csrf\CsrfMiddleware;
6+
use Yiisoft\Csrf\CsrfTokenMiddleware;
77
use Yiisoft\DataResponse\Middleware\FormatDataResponse;
8-
use Yiisoft\Router\Group;
98
use Yiisoft\Router\RouteCollection;
109
use Yiisoft\Router\RouteCollectionInterface;
1110
use Yiisoft\Router\RouteCollectorInterface;
@@ -15,12 +14,9 @@
1514
return [
1615
RouteCollectionInterface::class => static function (RouteCollectorInterface $collector) use ($config) {
1716
$collector
18-
->middleware(CsrfMiddleware::class)
17+
->middleware(CsrfTokenMiddleware::class)
1918
->middleware(FormatDataResponse::class)
20-
->addGroup(
21-
Group::create()
22-
->routes(...$config->get('routes'))
23-
);
19+
->addRoute(...$config->get('routes'));
2420

2521
return new RouteCollection($collector);
2622
},

config/environments/dev/params.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22

33
declare(strict_types=1);
44

5-
return [
6-
'yiisoft/yii-debug' => [
7-
'enabled' => true,
8-
],
9-
];
5+
return [];

config/environments/prod/params.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,4 @@
22

33
declare(strict_types=1);
44

5-
return [
6-
'yiisoft/yii-debug' => [
7-
'enabled' => false,
8-
],
9-
];
5+
return [];

0 commit comments

Comments
 (0)