Skip to content

Commit 11fef5d

Browse files
authored
Merge pull request #1 from php-soap/php81
PHP 8.1 Compatibility
2 parents e22e794 + 63f27a0 commit 11fef5d

11 files changed

+13
-12
lines changed

.gitattributes

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ tools/* binary
77
/phpunit.xml export-ignore
88
/.phive/phars.xml export-ignore
99
/.phive/phars.xml export-ignore
10-
/.php_cs.dist export-ignore
10+
/.php-cs-fixer.cache export-ignore

.github/workflows/analyzers.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.0']
10+
php-versions: ['8.0', '8.1']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.github/workflows/code-style.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.0']
10+
php-versions: ['8.0', '8.1']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:
@@ -22,4 +22,4 @@ jobs:
2222
- name: Install dependencies
2323
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
2424
- name: Run the tests
25-
run: ./tools/php-cs-fixer.phar fix --dry-run
25+
run: PHP_CS_FIXER_IGNORE_ENV=1 ./tools/php-cs-fixer.phar fix --dry-run

.github/workflows/tests.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.0']
10+
php-versions: ['8.0', '8.1']
1111
fail-fast: false
1212
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1313
steps:

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/vendor/
22
.phpunit.result.cache
33
composer.lock
4-
.php_cs.cache
4+
.php-cs-fixer.cache

.phive/phars.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="psalm" version="^4.3.1" installed="4.8.1" location="./tools/psalm.phar" copy="true"/>
4-
<phar name="php-cs-fixer" version="^2.18.2" installed="2.19.0" location="./tools/php-cs-fixer.phar" copy="true"/>
3+
<phar name="psalm" version="^4.13.1" installed="4.13.1" location="./tools/psalm.phar" copy="true"/>
4+
<phar name="php-cs-fixer" version="^3.3.2" installed="3.3.2" location="./tools/php-cs-fixer.phar" copy="true"/>
55
</phive>

.php_cs.dist .php-cs-fixer.dist.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
return PhpCsFixer\Config::create()
3+
return (new PhpCsFixer\Config())
44
->setFinder(
55
\Symfony\Component\Finder\Finder::create()
66
->in([
@@ -24,7 +24,9 @@
2424
'list_syntax' => [
2525
'syntax' => 'short',
2626
],
27-
'lowercase_constants' => true,
27+
'constant_case' => [
28+
'case' => 'lower',
29+
],
2830
'multiline_comment_opening_closing' => true,
2931
'native_function_casing' => true,
3032
'no_empty_phpdoc' => true,

psalm.xml

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
forbidEcho="true"
66
strictBinaryOperands="true"
77
phpVersion="8.0"
8-
allowPhpStormGenerics="true"
98
allowStringToStandInForClass="true"
109
rememberPropertyAssignmentsAfterCall="false"
1110
skipChecksOnUnresolvableIncludes="false"

tests/Unit/HttpBinding/Psr7ConverterTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setUp(): void
2424

2525
public function test_it_can_create_a_request()
2626
{
27-
$soapRequest = new SoapRequest('request', '/url', 'action', 1, 0);
27+
$soapRequest = new SoapRequest('request', '/url', 'action', 1, false);
2828

2929
$request = $this->converter->convertSoapRequest($soapRequest);
3030

tools/php-cs-fixer.phar

285 KB
Binary file not shown.

tools/psalm.phar

1.48 MB
Binary file not shown.

0 commit comments

Comments
 (0)