Skip to content

Commit 7aca725

Browse files
authored
Merge pull request #15 from simplesamlphp/dependabot/github_actions/all-actions-cc23c4c9e7
Bump simplesamlphp/simplesamlphp-test-framework from 1.10.0 to 1.10.1 in the all-actions group
2 parents 2607d94 + c2fcd8b commit 7aca725

9 files changed

Lines changed: 39 additions & 82 deletions

File tree

.github/workflows/php.yml

Lines changed: 14 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php-version: ['8.1', '8.2', '8.3', '8.4']
22+
php-version: ['8.2', '8.3', '8.4']
2323

24-
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.10.0
24+
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_phplinter.yml@v1.10.1
2525
with:
2626
php-version: ${{ matrix.php-version }}
2727

@@ -30,7 +30,7 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232

33-
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.10.0
33+
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/reusable_linter.yml@v1.10.1
3434
with:
3535
enable_eslinter: false
3636
enable_jsonlinter: true
@@ -45,7 +45,7 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
operating-system: [ubuntu-latest]
48-
php-versions: ['8.1', '8.2', '8.3', '8.4']
48+
php-versions: ['8.2', '8.3', '8.4']
4949

5050
steps:
5151
- name: Setup PHP, with composer and extensions
@@ -107,15 +107,15 @@ jobs:
107107
fail-fast: true
108108
matrix:
109109
operating-system: [windows-latest]
110-
php-versions: ['8.1', '8.2', '8.3', '8.4']
110+
php-versions: ['8.2', '8.3', '8.4']
111111

112112
steps:
113113
- name: Setup PHP, with composer and extensions
114114
# https://github.com/shivammathur/setup-php
115115
uses: shivammathur/setup-php@v2
116116
with:
117117
php-version: ${{ matrix.php-versions }}
118-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
118+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml, zip
119119
tools: composer
120120
ini-values: error_reporting=E_ALL
121121
coverage: none
@@ -161,9 +161,8 @@ jobs:
161161
with:
162162
# Should be the higest supported version, so we can use the newest tools
163163
php-version: '8.4'
164-
tools: composer, composer-require-checker, composer-unused, phpcs, psalm
165-
# optional performance gain for psalm: opcache
166-
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, opcache, openssl, pcre, posix, spl, xml
164+
tools: composer, composer-require-checker, composer-unused
165+
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
167166

168167
- name: Setup problem matchers for PHP
169168
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
@@ -193,29 +192,15 @@ jobs:
193192
run: composer-unused
194193

195194
- name: PHP Code Sniffer
196-
run: phpcs
197-
198-
- name: Psalm
199-
continue-on-error: true
200-
run: |
201-
psalm -c psalm.xml \
202-
--show-info=true \
203-
--shepherd \
204-
--php-version=${{ steps.setup-php.outputs.php-version }}
195+
run: vendor/bin/phpcs
205196

206-
- name: Psalm (testsuite)
197+
- name: PHPStan
207198
run: |
208-
psalm -c psalm-dev.xml \
209-
--show-info=true \
210-
--shepherd \
211-
--php-version=${{ steps.setup-php.outputs.php-version }}
199+
vendor/bin/phpstan analyze -c phpstan.neon --debug
212200
213-
- name: Psalter
201+
- name: PHPStan (testsuite)
214202
run: |
215-
psalm --alter \
216-
--issues=UnnecessaryVarAnnotation \
217-
--dry-run \
218-
--php-version=${{ steps.setup-php.outputs.php-version }}
203+
vendor/bin/phpstan analyze -c phpstan-dev.neon --debug
219204
220205
security:
221206
name: Security checks
@@ -226,7 +211,7 @@ jobs:
226211
uses: shivammathur/setup-php@v2
227212
with:
228213
# Should be the lowest supported version
229-
php-version: '8.1'
214+
php-version: '8.2'
230215
extensions: ctype, date, dom, fileinfo, filter, hash, intl, mbstring, openssl, pcre, posix, spl, xml
231216
tools: composer
232217
coverage: none

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
}
2121
},
2222
"require": {
23-
"php": "^8.1",
23+
"php": "^8.2",
2424
"ext-zlib": "*",
2525

26-
"simplesamlphp/simplesamlphp": "^2.2.0",
26+
"simplesamlphp/simplesamlphp": "^2.4.0",
2727
"symfony/http-foundation": "^6.4.0"
2828
},
2929
"require-dev": {
30-
"simplesamlphp/simplesamlphp-test-framework": "^1.7.0"
30+
"simplesamlphp/simplesamlphp-test-framework": "^1.10.2"
3131
},
3232
"config": {
3333
"allow-plugins": {

phpcs.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
<file>templates</file>
1313
<file>tests</file>
1414

15+
<!-- Lines can be a little bit longer before they break the build -->
16+
<rule ref="Generic.Files.LineLength">
17+
<properties>
18+
<property name="lineLimit" value="120"/>
19+
<property name="absoluteLineLimit" value="130"/>
20+
</properties>
21+
22+
<!-- Exclude files with long lines that we cannot immediately fix -->
23+
<exclude-pattern>tests/src/Controller/DebugTest.php</exclude-pattern>
24+
</rule>
25+
1526
<!-- Use this to exclude paths. You can have multiple patterns -->
1627
<!--<exclude-pattern>*/tests/*</exclude-pattern>-->
1728
<!--<exclude-pattern>*/other/*</exclude-pattern>-->

phpstan-dev.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: 9
3+
paths:
4+
- tests

phpstan.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
parameters:
2+
level: 6
3+
paths:
4+
- src

psalm-dev.xml

Lines changed: 0 additions & 18 deletions
This file was deleted.

psalm.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/Controller/Debug.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ public function encode(Request $request): Template
107107

108108
/**
109109
* @param string $raw
110-
* @return string
110+
* @return string[]|string
111111
*/
112-
private function getValue(string $raw): string
112+
private function getValue(string $raw): array|string
113113
{
114114
$val = $raw;
115115

tests/src/Controller/DebugTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ final class DebugTest extends TestCase
2828
/** @var string */
2929
protected static string $encoded = 'SAMLRequest=pVJNjxMxDP0ro9yn88FOtRu1lcpWiEoLVNvCgQtKE6eNlHGG2IHl35OZLmLZQy%2BcrNh%2Bz88vXpDq%2FSDXic%2F4CN8TEBdPvUeSU2EpUkQZFDmSqHogyVru1x8eZDur5RADBx28eAG5jlBEENkFFMV2sxTfzO0dmKa11namPuoc39hba%2BfqpqlbM6%2Fb5mZ%2B1LWtj6L4ApEycikyUYYTJdgisULOqbrpyqYt67tD28iulV33VRSbvI1DxRPqzDyQrCrAk0OYUYpWB4QnnqGvVN4fkJ2emitnhoocnjyU5E5YjnrXf6TfB6TUQ9xD%2FOE0fH58%2BEueHbHOv2Yn1w8eRneqPpiU68M5DxjfdIltqTRNWQNWJc8lDaLYPfv71qHJaq5be7w0kXx%2FOOzK3af9QawWI7ecrIqr%2F9HYAyujWL2SuKheDlhcbuljlrbd7IJ3%2BlfxLsRe8XXlY8aZ0k6tkqNCcvkzsuXeh5%2F3ERTDUnBMIKrVZeS%2FF7v6DQ%3D%3D';
3030

31+
3132
/**
3233
* Set up for each test.
3334
*/

0 commit comments

Comments
 (0)