Skip to content

Commit 6140d29

Browse files
authored
Merge pull request #24 from veewee/php84
Bump dependencies
2 parents 8975e4f + de52583 commit 6140d29

19 files changed

+44
-38
lines changed

.github/workflows/analyzers.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2', '8.3']
10+
php-versions: ['8.2', '8.3', '8.4']
11+
composer-options: ['--ignore-platform-req=php+']
1112
fail-fast: false
1213
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1314
steps:

.github/workflows/code-style.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2', '8.3']
10+
php-versions: ['8.2', '8.3', '8.4']
11+
composer-options: ['--ignore-platform-req=php+']
1112
fail-fast: false
1213
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1314
steps:

.github/workflows/tests.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ jobs:
77
strategy:
88
matrix:
99
operating-system: [ubuntu-latest]
10-
php-versions: ['8.1', '8.2', '8.3']
10+
php-versions: ['8.2', '8.3', '8.4']
11+
composer-options: ['--ignore-platform-req=php+']
1112
fail-fast: false
1213
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
1314
steps:
@@ -20,6 +21,6 @@ jobs:
2021
tools: 'composer:v2'
2122
extensions: pcov, mbstring, posix, dom, soap
2223
- name: Install dependencies
23-
run: composer update --prefer-dist --no-progress --no-suggest
24+
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
2425
- name: Run the tests
2526
run: ./vendor/bin/phpunit

.phive/phars.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phive xmlns="https://phar.io/phive">
3-
<phar name="php-cs-fixer" version="^3.13.0" installed="3.39.0" location="./tools/php-cs-fixer.phar" copy="true"/>
3+
<phar name="php-cs-fixer" version="^3.13.0" installed="3.64.0" location="./tools/php-cs-fixer.phar" copy="true"/>
44
</phive>

.php-cs-fixer.dist.php

+1
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,6 @@
5353
'static_lambda' => true,
5454
'strict_comparison' => true,
5555
'strict_param' => true,
56+
'nullable_type_declaration_for_default_null_value' => true,
5657
])
5758
;

composer.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@
2626
"sort-packages": true
2727
},
2828
"require": {
29-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
29+
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
3030
"ext-dom": "*",
31-
"azjezz/psl": "^2.1",
31+
"azjezz/psl": "^3.0",
3232
"league/uri": "^7.0",
3333
"league/uri-components": "^7.0",
34-
"php-soap/xml": "^1.4",
34+
"php-soap/xml": "^1.8",
3535
"symfony/console": "^5.4 || ^6.0 || ^7.0",
36-
"veewee/xml": "~2.2 || ~3.0"
36+
"veewee/xml": "~3.0"
3737
},
3838
"require-dev": {
39-
"phpunit/phpunit": "^9.5",
39+
"phpunit/phpunit": "^10.5",
4040
"psalm/plugin-symfony": "^5.0",
41-
"vimeo/psalm": "^5.9.0"
41+
"vimeo/psalm": "^5.26.0"
4242
}
4343
}

phpunit.xml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<phpunit
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
4+
displayDetailsOnPhpunitDeprecations="true"
25
bootstrap="./tests/bootstrap.php"
36
colors="true"
4-
convertDeprecationsToExceptions="false"
57
>
68
<testsuites>
79
<testsuite name="Unit">

src/Console/Command/FlattenCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
5656

5757
$style->info('Downloaded the WSDL. Writing it to "'.$output.'".');
5858

59-
File\write($output, $contents, WriteMode::TRUNCATE);
59+
File\write($output, $contents, WriteMode::Truncate);
6060

6161
$style->success('Succesfully flattened your WSDL!');
6262

src/Console/Helper/ConfiguredLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class ConfiguredLoader
1919
*
2020
* @psalm-suppress UnresolvableInclude - Including dynamic includes is acutally the goal :)
2121
*/
22-
public static function createFromConfig(?string $file, callable $configurator = null): WsdlLoader
22+
public static function createFromConfig(?string $file, ?callable $configurator = null): WsdlLoader
2323
{
2424
$loader = new StreamWrapperLoader();
2525

src/Exception/UnloadableWsdlException.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
final class UnloadableWsdlException extends RuntimeException
1111
{
12-
protected function __construct(string $message = "", int $code = 0, Throwable $previous = null)
12+
protected function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
1313
{
1414
parent::__construct($message, $code, $previous);
1515
}

tests/Unit/Console/Helper/ConfiguredLoaderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private function withLoaderFile(callable $execute): void
6767
<?php
6868
return new \Soap\Wsdl\Loader\CallbackLoader(static fn () => 'loaded');
6969
EOPHP,
70-
WriteMode::TRUNCATE
70+
WriteMode::Truncate
7171
);
7272

7373
try {

tests/Unit/Loader/FlatteningLoaderTest.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ protected function setUp(): void
2222
*
2323
* @dataProvider provideTestCases
2424
*/
25-
public function test_it_can_load_flattened_imports(string $wsdlUri, Document $expected): void
25+
public function test_it_can_load_flattened_imports(string $wsdl, Document $expected): void
2626
{
27-
$result = ($this->loader)($wsdlUri);
27+
$result = ($this->loader)($wsdl);
2828
$flattened = Document::fromXmlString($result, comparable());
2929

3030
static::assertSame($expected->toXmlString(), $flattened->toXmlString());
3131
}
3232

33-
public function provideTestCases()
33+
public static function provideTestCases()
3434
{
3535
//
3636
// Basic test cases

tests/Unit/Uri/IncludePathBuilderTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function test_it_can_build_include_paths(string $relativePath, string $fr
1818
static::assertSame($expected, IncludePathBuilder::build($relativePath, $fromFile));
1919
}
2020

21-
public function provideBuildPaths()
21+
public static function provideBuildPaths()
2222
{
2323
yield 'same-dir-file' => [
2424
'relativePath' => 'otherfile.xml',

tests/Unit/Xml/Configurator/FlattenTypesTest.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ final class FlattenTypesTest extends TestCase
1414
*
1515
* @dataProvider provideTestCases
1616
*/
17-
public function test_it_can_flatten_types(string $wsdlUri, Document $expected): void
17+
public function test_it_can_flatten_types(string $wsdl, Document $expected): void
1818
{
19-
$wsdl = Document::fromXmlFile($wsdlUri, new FlattenTypes(), comparable());
19+
$wsdlDoc = Document::fromXmlFile($wsdl, new FlattenTypes(), comparable());
2020

21-
static::assertSame($expected->toXmlString(), $wsdl->toXmlString());
21+
static::assertSame($expected->toXmlString(), $wsdlDoc->toXmlString());
2222
}
2323

24-
public function provideTestCases()
24+
public static function provideTestCases()
2525
{
2626
yield 'single-type' => [
2727
'wsdl' => FIXTURE_DIR . '/flattening/functional/empty-schema.wsdl',

tests/Unit/Xml/Configurator/FlattenWsdlImportsTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,19 @@ final class FlattenWsdlImportsTest extends TestCase
1616
*
1717
* @dataProvider provideTestCases
1818
*/
19-
public function test_it_can_flatten_wsdl_imports(string $wsdlUri, Document $expected): void
19+
public function test_it_can_flatten_wsdl_imports(string $wsdl, Document $expected): void
2020
{
21-
$wsdl = Document::fromXmlFile($wsdlUri);
21+
$wsdlDoc = Document::fromXmlFile($wsdl);
2222
$configurator = new FlattenWsdlImports(
23-
$wsdlUri,
24-
FlatteningContext::forWsdl($wsdlUri, $wsdl, new StreamWrapperLoader())
23+
$wsdl,
24+
FlatteningContext::forWsdl($wsdl, $wsdlDoc, new StreamWrapperLoader())
2525
);
26-
$flattened = Document::fromUnsafeDocument($wsdl->toUnsafeDocument(), $configurator, comparable());
26+
$flattened = Document::fromUnsafeDocument($wsdlDoc->toUnsafeDocument(), $configurator, comparable());
2727

2828
static::assertSame($expected->toXmlString(), $flattened->toXmlString());
2929
}
3030

31-
public function provideTestCases()
31+
public static function provideTestCases()
3232
{
3333
yield 'only-import' => [
3434
'wsdl' => FIXTURE_DIR.'/flattening/import.wsdl',

tests/Unit/Xml/Configurator/FlattenXsdImportsTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ final class FlattenXsdImportsTest extends TestCase
1717
*
1818
* @dataProvider provideTestCases
1919
*/
20-
public function test_it_can_flatten_xsd_imports(string $wsdlUri, Document $expected, callable $xmlConfigurator): void
20+
public function test_it_can_flatten_xsd_imports(string $wsdl, Document $expected, callable $xmlConfigurator): void
2121
{
22-
$wsdl = Document::fromXmlFile($wsdlUri);
22+
$wsdlDoc = Document::fromXmlFile($wsdl);
2323
$configurator = new FlattenXsdImports(
24-
$wsdlUri,
25-
FlatteningContext::forWsdl($wsdlUri, $wsdl, new StreamWrapperLoader())
24+
$wsdl,
25+
FlatteningContext::forWsdl($wsdl, $wsdlDoc, new StreamWrapperLoader())
2626
);
27-
$flattened = Document::fromUnsafeDocument($wsdl->toUnsafeDocument(), $configurator, $xmlConfigurator);
27+
$flattened = Document::fromUnsafeDocument($wsdlDoc->toUnsafeDocument(), $configurator, $xmlConfigurator);
2828

2929
static::assertSame($expected->reconfigure($xmlConfigurator)->toXmlString(), $flattened->toXmlString());
3030
}
3131

32-
public function provideTestCases()
32+
public static function provideTestCases()
3333
{
3434
yield 'single-xsd' => [
3535
'wsdl' => FIXTURE_DIR.'/flattening/single-xsd.wsdl',

tests/Unit/Xml/Validator/SchemaSyntaxValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_it_can_validate_errors(string $wsdl, array $errorMessages):
2424
}
2525
}
2626

27-
public function provideTestCases()
27+
public static function provideTestCases()
2828
{
2929
yield 'no-errors' => [
3030
'wsdl' => FIXTURE_DIR.'/wsdl.wsdl',

tests/Unit/Xml/Validator/WsdlSyntaxValidatorTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_it_can_validate_errors(string $wsdl, array $errorMessages):
2424
}
2525
}
2626

27-
public function provideTestCases()
27+
public static function provideTestCases()
2828
{
2929
yield 'no-errors' => [
3030
'wsdl' => FIXTURE_DIR.'/wsdl.wsdl',

tools/php-cs-fixer.phar

532 KB
Binary file not shown.

0 commit comments

Comments
 (0)