Skip to content

Commit e8c1db5

Browse files
authored
Merge pull request #463 from OpenConext/feature/updates
Upgrade Symfony 6.4 > 7.4
2 parents a3a1b00 + 9492f74 commit e8c1db5

100 files changed

Lines changed: 4499 additions & 5190 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ updates:
2525
- "*"
2626
# Maintain dependencies for npm
2727
- package-ecosystem: "npm"
28+
cooldown:
29+
default-days: 14
2830
directories:
2931
- "/"
3032
schedule:

.github/workflows/test-integration.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Run QA tests (static analysis, lint and unit tests)
2-
on: [pull_request]
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
38

49
jobs:
510
run-qa-tests:
@@ -26,4 +31,4 @@ jobs:
2631
run: yarn encore prod
2732

2833
- name: Run QA tests
29-
run: composer check
34+
run: composer check-ci

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 7.0.0
4+
- Update to Symfony 7.4
5+
36
## 6.0.1
47
- Ensure the correct error page is displayed when authentication fails #332
58
- Upgrade of numerous NPM and Composer dependencies

ci/qa/phpcbf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
cd $(dirname $0)/../../
44

55
# https://github.com/squizlabs/PHP_CodeSniffer/wiki/Fixing-Errors-Automatically
6-
./vendor/bin/phpcbf --standard=ci/qa/phpcs.xml $1
6+
./vendor/bin/phpcbf --standard=ci/qa/phpcs.xml src $1

ci/qa/phplint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
path: [./src, ./tests]
22
jobs: 10
3-
cache: /var/qa/phplint.cache
3+
cache-dir: var/cache/qa/phplint.cache
44
extensions:
55
- php
66
exclude:
7-
- vendor
7+
- vendor

ci/qa/phpstan-baseline.php

Lines changed: 170 additions & 151 deletions
Large diffs are not rendered by default.

ci/qa/phpunit.xml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,28 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- https://phpunit.readthedocs.io/en/latest/configuration.html -->
3-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd" backupGlobals="false" colors="true" bootstrap="../../config/bootstrap.php">
4-
<coverage processUncoveredFiles="true">
3+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" backupGlobals="false" colors="true"
5+
bootstrap="../../config/bootstrap.php"
6+
cacheDirectory="../../var/qa/phpunit.cache"
7+
8+
>
9+
<coverage>
10+
</coverage>
11+
<source>
512
<include>
6-
<directory suffix="Test.php">../../src</directory>
13+
<directory suffix=".php">../../src</directory>
714
</include>
8-
</coverage>
15+
</source>
916
<php>
1017
<ini name="error_reporting" value="-1"/>
1118
<server name="APP_ENV" value="test" force="true"/>
1219
<server name="SHELL_VERBOSITY" value="-1"/>
1320
<server name="KERNEL_CLASS" value="\App\Kernel"/>
14-
<env name="SYMFONY_DEPRECATIONS_HELPER" value="999999"/>
21+
<env name="SYMFONY_DEPRECATIONS_HELPER" value="max[direct]=0&amp;max[self]=0"/>
1522
</php>
1623
<testsuites>
1724
<testsuite name="Project Test Suite">
1825
<directory suffix="Test.php">../../src</directory>
1926
</testsuite>
2027
</testsuites>
21-
<listeners>
22-
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/>
23-
</listeners>
2428
</phpunit>

ci/qa/rector.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
return RectorConfig::configure()
8+
->withPaths([
9+
__DIR__ . '/../../ci',
10+
__DIR__ . '/../../config',
11+
__DIR__ . '/../../src',
12+
__DIR__ . '/../../templates',
13+
])
14+
->withPhpSets()
15+
->withAttributesSets(all: true)
16+
->withComposerBased(twig: true, doctrine: true, phpunit: true, symfony: true)
17+
->withPHPStanConfigs([__DIR__.'/phpstan.neon'])
18+
->withPreparedSets(deadCode: true)
19+
;

ci/qa/rector.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env sh
2+
3+
# Ensure we run from project root
4+
cd "$(dirname "$0")/../../" || exit 1
5+
./vendor/bin/rector --config=ci/qa/rector.php "$@"

component_info

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PHP_VERSION=82
2-
SYMFONY_VERSION=6
2+
SYMFONY_VERSION=7
33
ENCORE=yes
44
ASSETIC=no
55
NODE_VERSION=20

0 commit comments

Comments
 (0)