Skip to content

Commit ddc4b5f

Browse files
authored
Merge pull request #28 from veewee/php-85-upgrade
Upgrade to PHP 8.5 and latest dependencies
2 parents 0c5a1af + 1610bc9 commit ddc4b5f

17 files changed

+44
-59
lines changed

.github/workflows/analyzers.yaml

Lines changed: 2 additions & 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 }}
@@ -24,3 +24,4 @@ jobs:
2424
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
2525
- name: Run the tests
2626
run: ./vendor/bin/psalm
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 & 4 deletions
This file was deleted.

composer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@
2626
"sort-packages": true
2727
},
2828
"require": {
29-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
29+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
3030
"ext-dom": "*",
31-
"azjezz/psl": "^3.0",
31+
"azjezz/psl": "^3.0 || ^4.0",
3232
"league/uri": "^7.0",
3333
"league/uri-components": "^7.0",
34-
"php-soap/xml": "^1.8",
34+
"php-soap/xml": "^1.9",
3535
"symfony/console": "^5.4 || ^6.0 || ^7.0",
3636
"veewee/xml": "~3.0"
3737
},
3838
"require-dev": {
39-
"phpunit/phpunit": "^10.5",
39+
"php-cs-fixer/shim": "^3.88",
40+
"phpunit/phpunit": "^12.3",
4041
"psalm/plugin-symfony": "^5.0",
41-
"vimeo/psalm": "^5.26.0"
42+
"vimeo/psalm": "^6.13"
4243
}
4344
}

phpunit.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
44
displayDetailsOnPhpunitDeprecations="true"
5+
displayDetailsOnTestsThatTriggerWarnings="true"
6+
failOnWarning="true"
7+
failOnPhpunitWarning="true"
58
bootstrap="./tests/bootstrap.php"
69
colors="true"
710
>

psalm.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
skipChecksOnUnresolvableIncludes="false"
1010
checkForThrowsDocblock="true"
1111
checkForThrowsInGlobalScope="true"
12+
findUnusedCode="false"
13+
ensureOverrideAttribute="false"
1214
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
1315
xmlns="https://getpsalm.org/schema/config"
1416
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"

tests/Unit/Loader/FlatteningLoaderTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
namespace Soap\Wsdl\Test\Unit\Loader;
55

6+
use PHPUnit\Framework\Attributes\DataProvider;
67
use PHPUnit\Framework\TestCase;
78
use Soap\Wsdl\Loader\FlatteningLoader;
89
use Soap\Wsdl\Loader\StreamWrapperLoader;
@@ -18,10 +19,7 @@ protected function setUp(): void
1819
$this->loader = new FlatteningLoader(new StreamWrapperLoader());
1920
}
2021

21-
/**
22-
*
23-
* @dataProvider provideTestCases
24-
*/
22+
#[DataProvider('provideTestCases')]
2523
public function test_it_can_load_flattened_imports(string $wsdl, Document $expected): void
2624
{
2725
$result = ($this->loader)($wsdl);

tests/Unit/Uri/IncludePathBuilderTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,13 @@
44

55
namespace Soap\Wsdl\Test\Unit\Uri;
66

7+
use PHPUnit\Framework\Attributes\DataProvider;
78
use PHPUnit\Framework\TestCase;
89
use Soap\Wsdl\Uri\IncludePathBuilder;
910

1011
final class IncludePathBuilderTest extends TestCase
1112
{
12-
/**
13-
*
14-
* @dataProvider provideBuildPaths
15-
*/
13+
#[DataProvider('provideBuildPaths')]
1614
public function test_it_can_build_include_paths(string $relativePath, string $fromFile, string $expected): void
1715
{
1816
static::assertSame($expected, IncludePathBuilder::build($relativePath, $fromFile));

tests/Unit/Xml/Configurator/FlattenTypesTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@
33

44
namespace Soap\Wsdl\Test\Unit\Xml\Configurator;
55

6+
use PHPUnit\Framework\Attributes\DataProvider;
67
use PHPUnit\Framework\TestCase;
78
use Soap\Wsdl\Xml\Configurator\FlattenTypes;
89
use VeeWee\Xml\Dom\Document;
910
use function VeeWee\Xml\Dom\Configurator\comparable;
1011

1112
final class FlattenTypesTest extends TestCase
1213
{
13-
/**
14-
*
15-
* @dataProvider provideTestCases
16-
*/
14+
#[DataProvider('provideTestCases')]
1715
public function test_it_can_flatten_types(string $wsdl, Document $expected): void
1816
{
1917
$wsdlDoc = Document::fromXmlFile($wsdl, new FlattenTypes(), comparable());

0 commit comments

Comments
 (0)