Skip to content

Commit fceff9e

Browse files
authored
Merge pull request #25 from veewee/php-85-upgrade
Upgrade to PHP 8.5 support and latest dependencies
2 parents 967491b + c7faff7 commit fceff9e

File tree

14 files changed

+39
-50
lines changed

14 files changed

+39
-50
lines changed

.github/workflows/analyzers.yaml

Lines changed: 3 additions & 2 deletions
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.2', '8.3' ]
10+
php-versions: [ '8.3', '8.4', '8.5' ]
1111
composer-options: [ '--ignore-platform-req=php+' ]
1212
fail-fast: false
1313
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
@@ -23,4 +23,5 @@ jobs:
2323
- name: Install dependencies
2424
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
2525
- name: Run the tests
26-
run: ./tools/psalm.phar
26+
run: ./vendor/bin/psalm --no-cache
27+
continue-on-error: ${{ matrix.php-versions == '8.5' }}

.github/workflows/code-style.yaml

Lines changed: 2 additions & 2 deletions
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.2', '8.3', '8.4' ]
10+
php-versions: [ '8.3', '8.4', '8.5' ]
1111
composer-options: [ '--ignore-platform-req=php+' ]
1212
fail-fast: false
1313
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
@@ -23,4 +23,4 @@ jobs:
2323
- name: Install dependencies
2424
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
2525
- name: Run the tests
26-
run: PHP_CS_FIXER_IGNORE_ENV=1 ./tools/php-cs-fixer.phar fix --dry-run
26+
run: PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --dry-run

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
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.2', '8.3', '8.4' ]
10+
php-versions: [ '8.3', '8.4', '8.5' ]
1111
composer-options: [ '--ignore-platform-req=php+' ]
1212
fail-fast: false
1313
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}

.phive/phars.xml

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

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,19 @@
2020
}
2121
],
2222
"require": {
23-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
23+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
2424
"ext-soap": "*",
2525
"ext-dom": "*",
26-
"azjezz/psl": "^3.0",
27-
"php-soap/engine": "^2.13",
28-
"php-soap/wsdl": "^1.12",
26+
"azjezz/psl": "^3.0 || ^4.0",
27+
"php-soap/engine": "^2.16",
28+
"php-soap/wsdl": "^1.14",
2929
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0"
3030
},
3131
"require-dev": {
32-
"php-soap/engine-integration-tests": "^1.9",
33-
"php-soap/xml": "^1.8",
34-
"phpunit/phpunit": "^10.0.19 || ^11.0.0"
32+
"php-soap/engine-integration-tests": "^1.10",
33+
"php-soap/xml": "^1.9",
34+
"phpunit/phpunit": "~12.3",
35+
"vimeo/psalm": "~6.13",
36+
"php-cs-fixer/shim": "~3.88"
3537
}
3638
}

phpunit.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
<phpunit bootstrap="./tests/bootstrap.php" colors="true">
1+
<phpunit
2+
bootstrap="./tests/bootstrap.php"
3+
colors="true"
4+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
5+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6+
displayDetailsOnTestsThatTriggerWarnings="true"
7+
failOnWarning="true"
8+
failOnPhpunitWarning="true">
29
<testsuites>
310
<testsuite name="Functional">
411
<directory>./tests/Functional</directory>

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
allowStringToStandInForClass="true"
88
rememberPropertyAssignmentsAfterCall="false"
99
skipChecksOnUnresolvableIncludes="false"
10+
findUnusedCode="false"
11+
ensureOverrideAttribute="false"
1012
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1113
xmlns="https://getpsalm.org/schema/config"
1214
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

src/AbusedClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ public function __doRequest(
4949
string $location,
5050
string $action,
5151
int $version,
52-
bool $one_way = false
52+
bool $one_way = false,
53+
?string $uriParserClass = null,
5354
): string {
5455
$this->storedRequest = new SoapRequest($request, $location, $action, $version, $one_way);
5556

src/Metadata/MethodsParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private function parseMethodFromString(string $methodString): Method
4141

4242
private function transformListResponseToArray(string $methodString): string
4343
{
44-
return preg_replace('/^list\(([^\)]*)\)(.*)/i', 'array$2', $methodString);
44+
return (string) preg_replace('/^list\(([^\)]*)\)(.*)/i', 'array$2', $methodString);
4545
}
4646

4747
private function parseParameters(string $methodString): ParameterCollection
@@ -51,7 +51,7 @@ private function parseParameters(string $methodString): ParameterCollection
5151
return new ParameterCollection();
5252
}
5353

54-
$parameters = preg_split('/,\s?/', $properties[1]);
54+
$parameters = preg_split('/,\s?/', $properties[1]) ?: [];
5555

5656
return new ParameterCollection(...array_map(
5757
function (string $parameter): Parameter {

src/Transport/ExtSoapServerTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function request(SoapRequest $request): SoapResponse
2020
{
2121
ob_start();
2222
$this->server->handle($request->getRequest());
23-
$responseBody = ob_get_contents();
23+
$responseBody = (string) ob_get_contents();
2424
ob_end_clean();
2525

2626
return new SoapResponse($responseBody);

0 commit comments

Comments
 (0)