Skip to content

Commit 175cd2b

Browse files
authored
Merge pull request #132 from OpenConext/feature/maintenance_nov-25
Add support for Symfony 7
2 parents 3ee8ae9 + 15f02a2 commit 175cd2b

File tree

57 files changed

+890
-606
lines changed

Some content is hidden

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

57 files changed

+890
-606
lines changed

.github/workflows/test-integration.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@ jobs:
66
continue-on-error: ${{ matrix.experimental }}
77
strategy:
88
matrix:
9-
php-versions: [ '8.2']
9+
php-versions: [ '8.2', '8.4']
1010
experimental: [false]
11-
include:
12-
- php-versions: '8.1'
13-
experimental: true
14-
- php-versions: '8.3'
15-
experimental: true
16-
- php-versions: '8.4'
17-
experimental: true
18-
timeout-minutes: 30
11+
timeout-minutes: 15
1912
name: PHP ${{ matrix.php-versions }} on Ubuntu latest. Experimental == ${{ matrix.experimental }}
2013
steps:
2114
- name: Install PHP
@@ -29,7 +22,7 @@ jobs:
2922
continue-on-error: ${{ matrix.experimental }}
3023
- id: checks
3124
name: Run CI tests
32-
run: composer check
25+
run: composer check-ci
3326
continue-on-error: ${{ matrix.experimental }}
3427
- name: Output log files on failure
3528
if: failure()

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.idea
44
composer.lock
55
.phpunit.result.cache
6+
var

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# 7.0.0
2+
- Add SF 7 support
3+
- Upgrade dev & qa tooling
4+
5+
Backward compatibility breaks:
6+
* Minor: `\Surfnet\SamlBundle\SAML2\BridgeContainer::debugMessage` Will now throw a `\Surfnet\SamlBundle\Exception\InvalidArgumentException` instead of 'Fatal error: Uncaught TypeError' if an invalid `$message` is debugged.
7+
18
# 6.0.0
29
- Add SF 6 support
310
- Require PHP 8.1

ci/qa/docheader

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
cd $(dirname $0)/../../
4+
5+
./vendor/bin/docheader --no-ansi --docheader=ci/qa/docheader.template check src/
6+

ci/qa/docheader.template

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Copyright %regexp:\d{4}% SURFnet %regexp:(B.V.|bv)%
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+

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 --extensions=php src $1

ci/qa/phpcpd

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

55
# https://github.com/sebastianbergmann/phpcpd
6-
./vendor/bin/phpcpd \
7-
./src $1
6+
vendor/bin/phpcpd ./src

ci/qa/phpcs

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/Usage
6-
./vendor/bin/phpcs --report=full --standard=ci/qa/phpcs.xml --ignore=*/Tests/* --warning-severity=0 --extensions=php src
6+
./vendor/bin/phpcs --report=full --standard=ci/qa/phpcs.xml --warning-severity=0 --extensions=php src

ci/qa/phpcs.xml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,18 @@
1515
<property name="lineLimit" value="120"/>
1616
<property name="absoluteLineLimit" value="150"/>
1717
</properties>
18+
<exclude-pattern>src/Tests/*</exclude-pattern>
1819
</rule>
20+
21+
<rule ref="PSR1.Methods.CamelCapsMethodName">
22+
<exclude-pattern>src/Tests/*</exclude-pattern>
23+
</rule>
24+
25+
<rule ref="SlevomatCodingStandard.Namespaces.ReferenceUsedNamesOnly"/>
26+
<rule ref="SlevomatCodingStandard.Namespaces.UnusedUses">
27+
<properties>
28+
<property name="searchAnnotations" type="bool" value="true"/>
29+
</properties>
30+
</rule>
31+
<rule ref="SlevomatCodingStandard.Namespaces.AlphabeticallySortedUses"/>
1932
</ruleset>

ci/qa/phplint.yaml

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

0 commit comments

Comments
 (0)