Skip to content

Commit b8f469c

Browse files
author
thisismeonmounteverest
committed
Update to PHP 8.5
1 parent 2e66f64 commit b8f469c

35 files changed

+378
-321
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,14 @@ jobs:
7777
run: composer install --prefer-dist --no-progress --no-suggest --no-interaction --no-scripts
7878

7979
- name: Run phpunit tests
80-
run: bin/phpunit --coverage-text --coverage-xml=build/logs/phpunit/coverage-xml --coverage-clover=build/logs/phpunit/clover.xml --log-junit=build/logs/phpunit/junit.xml --colors=never
80+
run: bin/phpunit --coverage-text --coverage-xml=build/logs/phpunit/coverage-xml --coverage-clover=build/logs/phpunit/clover.xml --log-junit=build/logs/phpunit/unit.xml --colors=never --order-by=random --exclude-group=integration
8181

8282
- name: Run Infection tests
8383
run: vendor/bin/infection --coverage=build/logs/phpunit --min-covered-msi=85 --threads=30
8484

85+
- name: Run Integration tests
86+
run: bin/phpunit --log-junit=build/logs/phpunit/integration.xml --colors=never --order-by=random --group=integration
87+
8588
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # tag=v4.6.2
8689
if: ${{ always() }}
8790
with:

Dockerfile

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

55

66
# https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
7-
ARG PHP_VERSION=8.4
7+
ARG PHP_VERSION=8.5
88
ARG NGINX_VERSION=1.29
99

1010

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ TIME_STAMP := $(shell git log -n 1 --format=%aI)
1212

1313
all: phpci
1414

15-
phpci: phpcpd phploc php-code-sniffer php-cs-fixer phpunit infection version
15+
phpci: phpcpd phploc php-code-sniffer php-cs-fixer phpunit infection int-test version
1616

1717
install:
1818
git rev-parse --short HEAD > VERSION
@@ -82,7 +82,10 @@ php-code-sniffer:
8282
"./vendor/bin/phpcs" --colors --warning-severity=Error
8383

8484
phpunit:
85-
"./bin/phpunit" --coverage-xml=build/logs/phpunit/coverage-xml --coverage-clover=build/logs/phpunit/clover.xml --log-junit=build/logs/phpunit/junit.xml --colors=never --order-by=random
85+
"./bin/phpunit" --coverage-xml=build/logs/phpunit/coverage-xml --coverage-clover=build/logs/phpunit/clover.xml --log-junit=build/logs/phpunit/junit.xml --colors=never --order-by=random --exclude-group=integration
86+
87+
int-test:
88+
"./bin/phpunit" --log-junit=build/logs/phpunit/junit.xml --colors=never --order-by=random --group=integration
8689

8790
infection: phpunit
8891
"./vendor/bin/infection" --coverage=build/logs/phpunit --min-covered-msi=85 --threads=30

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
"config": {
153153
"sort-packages": true,
154154
"platform": {
155-
"php": "8.4"
155+
"php": "8.5"
156156
},
157157
"allow-plugins": {
158158
"infection/extension-installer": true,

composer.lock

Lines changed: 185 additions & 186 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/reference.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -689,10 +689,10 @@
689689
* },
690690
* orm?: array{
691691
* default_entity_manager?: scalar|null,
692-
* enable_native_lazy_objects?: bool, // no-op, will be deprecated and removed in the future // Default: true
692+
* enable_native_lazy_objects?: bool, // Deprecated: The "enable_native_lazy_objects" option is deprecated and will be removed in DoctrineBundle 4.0, as native lazy objects are now always enabled. // Default: true
693693
* controller_resolver?: bool|array{
694694
* enabled?: bool, // Default: true
695-
* auto_mapping?: bool, // Set to true to enable using route placeholders as lookup criteria when the primary key doesn't match the argument name // Default: false
695+
* auto_mapping?: bool, // Deprecated: The "auto_mapping" option is deprecated and will be removed in DoctrineBundle 4.0, as it only accepts `false` since 3.0. // Set to true to enable using route placeholders as lookup criteria when the primary key doesn't match the argument name // Default: false
696696
* evict_cache?: bool, // Set to true to fetch the entity from the database instead of using the cache, if any // Default: false
697697
* },
698698
* entity_managers?: array<string, array{ // Default: []
@@ -1419,11 +1419,6 @@
14191419
* intercept_redirects?: bool, // Default: false
14201420
* excluded_ajax_paths?: scalar|null, // Default: "^/((index|app(_[\\w]+)?)\\.php/)?_wdt"
14211421
* }
1422-
* @psalm-type MakerConfig = array{
1423-
* root_namespace?: scalar|null, // Default: "App"
1424-
* generate_final_classes?: bool, // Default: true
1425-
* generate_final_entities?: bool, // Default: false
1426-
* }
14271422
* @psalm-type ExerciseHtmlPurifierConfig = array{
14281423
* default_cache_serializer_path?: scalar|null, // Default: "%kernel.cache_dir%/htmlpurifier"
14291424
* default_cache_serializer_permissions?: scalar|null, // Default: 493
@@ -1544,6 +1539,12 @@
15441539
* skip_same_as_origin?: bool,
15451540
* }>,
15461541
* }
1542+
* @psalm-type DamaDoctrineTestConfig = array{
1543+
* enable_static_connection?: mixed, // Default: true
1544+
* enable_static_meta_data_cache?: bool, // Default: true
1545+
* enable_static_query_cache?: bool, // Default: true
1546+
* connection_keys?: list<mixed>,
1547+
* }
15471548
* @psalm-type GregwarCaptchaConfig = array{
15481549
* length?: scalar|null, // Default: 5
15491550
* width?: scalar|null, // Default: 130
@@ -1808,11 +1809,10 @@
18081809
* skip_translation_on_load?: bool, // Default: false
18091810
* metadata_cache_pool?: scalar|null, // Default: null
18101811
* }
1811-
* @psalm-type DamaDoctrineTestConfig = array{
1812-
* enable_static_connection?: mixed, // Default: true
1813-
* enable_static_meta_data_cache?: bool, // Default: true
1814-
* enable_static_query_cache?: bool, // Default: true
1815-
* connection_keys?: list<mixed>,
1812+
* @psalm-type MakerConfig = array{
1813+
* root_namespace?: scalar|null, // Default: "App"
1814+
* generate_final_classes?: bool, // Default: true
1815+
* generate_final_entities?: bool, // Default: false
18161816
* }
18171817
* @psalm-type ConfigType = array{
18181818
* imports?: ImportsConfig,

config/services_test.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ services:
22
_defaults:
33
autowire: true
44
autoconfigure: true
5-
6-
App\Tests\Behat\:
7-
resource: '../tests/Behat/*'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"src/Model"
55
]
66
},
7-
"timeout": 20,
7+
"timeout": 30,
88
"logs": {
99
"text": "infection.log"
1010
},

public/images/favicon.ico

-14.7 KB
Binary file not shown.

rector.php

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
<?php
2-
3-
use Rector\Config\RectorConfig;
4-
use Rector\Set\ValueObject\SetList;
5-
6-
return RectorConfig::configure()
7-
->withSets([
8-
SetList::PHP_53,
9-
SetList::PHP_54,
10-
SetList::PHP_55,
11-
SetList::PHP_56,
12-
SetList::PHP_70,
13-
SetList::PHP_71,
14-
SetList::PHP_72,
15-
SetList::PHP_73,
16-
SetList::PHP_80,
17-
SetList::PHP_81,
18-
SetList::PHP_82,
19-
SetList::PHP_83,
20-
SetList::PHP_84,
21-
])
22-
// ->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
23-
->withPaths([
24-
__DIR__ . '/src',
25-
__DIR__ . '/tests',
26-
])
27-
;
1+
<?php
2+
3+
use Rector\Config\RectorConfig;
4+
use Rector\Set\ValueObject\SetList;
5+
6+
return RectorConfig::configure()
7+
->withSets([
8+
SetList::PHP_53,
9+
SetList::PHP_54,
10+
SetList::PHP_55,
11+
SetList::PHP_56,
12+
SetList::PHP_70,
13+
SetList::PHP_71,
14+
SetList::PHP_72,
15+
SetList::PHP_73,
16+
SetList::PHP_80,
17+
SetList::PHP_81,
18+
SetList::PHP_82,
19+
SetList::PHP_83,
20+
SetList::PHP_84,
21+
SetList::PHP_85,
22+
])
23+
->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
24+
->withPaths([
25+
__DIR__ . '/src',
26+
__DIR__ . '/tests',
27+
])
28+
;

0 commit comments

Comments
 (0)