Skip to content

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
veewee committed Oct 25, 2024
1 parent 8975e4f commit de52583
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/analyzers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3', '8.4']
composer-options: ['--ignore-platform-req=php+']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/code-style.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3', '8.4']
composer-options: ['--ignore-platform-req=php+']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.1', '8.2', '8.3']
php-versions: ['8.2', '8.3', '8.4']
composer-options: ['--ignore-platform-req=php+']
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
steps:
Expand All @@ -20,6 +21,6 @@ jobs:
tools: 'composer:v2'
extensions: pcov, mbstring, posix, dom, soap
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
- name: Run the tests
run: ./vendor/bin/phpunit
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="php-cs-fixer" version="^3.13.0" installed="3.39.0" location="./tools/php-cs-fixer.phar" copy="true"/>
<phar name="php-cs-fixer" version="^3.13.0" installed="3.64.0" location="./tools/php-cs-fixer.phar" copy="true"/>
</phive>
1 change: 1 addition & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,6 @@
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'nullable_type_declaration_for_default_null_value' => true,
])
;
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@
"sort-packages": true
},
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-dom": "*",
"azjezz/psl": "^2.1",
"azjezz/psl": "^3.0",
"league/uri": "^7.0",
"league/uri-components": "^7.0",
"php-soap/xml": "^1.4",
"php-soap/xml": "^1.8",
"symfony/console": "^5.4 || ^6.0 || ^7.0",
"veewee/xml": "~2.2 || ~3.0"
"veewee/xml": "~3.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpunit/phpunit": "^10.5",
"psalm/plugin-symfony": "^5.0",
"vimeo/psalm": "^5.9.0"
"vimeo/psalm": "^5.26.0"
}
}
4 changes: 3 additions & 1 deletion phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
displayDetailsOnPhpunitDeprecations="true"
bootstrap="./tests/bootstrap.php"
colors="true"
convertDeprecationsToExceptions="false"
>
<testsuites>
<testsuite name="Unit">
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/FlattenCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

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

File\write($output, $contents, WriteMode::TRUNCATE);
File\write($output, $contents, WriteMode::Truncate);

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

Expand Down
2 changes: 1 addition & 1 deletion src/Console/Helper/ConfiguredLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class ConfiguredLoader
*
* @psalm-suppress UnresolvableInclude - Including dynamic includes is acutally the goal :)
*/
public static function createFromConfig(?string $file, callable $configurator = null): WsdlLoader
public static function createFromConfig(?string $file, ?callable $configurator = null): WsdlLoader
{
$loader = new StreamWrapperLoader();

Expand Down
2 changes: 1 addition & 1 deletion src/Exception/UnloadableWsdlException.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

final class UnloadableWsdlException extends RuntimeException
{
protected function __construct(string $message = "", int $code = 0, Throwable $previous = null)
protected function __construct(string $message = "", int $code = 0, ?Throwable $previous = null)
{
parent::__construct($message, $code, $previous);
}
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Console/Helper/ConfiguredLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private function withLoaderFile(callable $execute): void
<?php
return new \Soap\Wsdl\Loader\CallbackLoader(static fn () => 'loaded');
EOPHP,
WriteMode::TRUNCATE
WriteMode::Truncate
);

try {
Expand Down
6 changes: 3 additions & 3 deletions tests/Unit/Loader/FlatteningLoaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ protected function setUp(): void
*
* @dataProvider provideTestCases
*/
public function test_it_can_load_flattened_imports(string $wsdlUri, Document $expected): void
public function test_it_can_load_flattened_imports(string $wsdl, Document $expected): void
{
$result = ($this->loader)($wsdlUri);
$result = ($this->loader)($wsdl);
$flattened = Document::fromXmlString($result, comparable());

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

public function provideTestCases()
public static function provideTestCases()
{
//
// Basic test cases
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Uri/IncludePathBuilderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function test_it_can_build_include_paths(string $relativePath, string $fr
static::assertSame($expected, IncludePathBuilder::build($relativePath, $fromFile));
}

public function provideBuildPaths()
public static function provideBuildPaths()
{
yield 'same-dir-file' => [
'relativePath' => 'otherfile.xml',
Expand Down
8 changes: 4 additions & 4 deletions tests/Unit/Xml/Configurator/FlattenTypesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ final class FlattenTypesTest extends TestCase
*
* @dataProvider provideTestCases
*/
public function test_it_can_flatten_types(string $wsdlUri, Document $expected): void
public function test_it_can_flatten_types(string $wsdl, Document $expected): void
{
$wsdl = Document::fromXmlFile($wsdlUri, new FlattenTypes(), comparable());
$wsdlDoc = Document::fromXmlFile($wsdl, new FlattenTypes(), comparable());

static::assertSame($expected->toXmlString(), $wsdl->toXmlString());
static::assertSame($expected->toXmlString(), $wsdlDoc->toXmlString());
}

public function provideTestCases()
public static function provideTestCases()
{
yield 'single-type' => [
'wsdl' => FIXTURE_DIR . '/flattening/functional/empty-schema.wsdl',
Expand Down
12 changes: 6 additions & 6 deletions tests/Unit/Xml/Configurator/FlattenWsdlImportsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ final class FlattenWsdlImportsTest extends TestCase
*
* @dataProvider provideTestCases
*/
public function test_it_can_flatten_wsdl_imports(string $wsdlUri, Document $expected): void
public function test_it_can_flatten_wsdl_imports(string $wsdl, Document $expected): void
{
$wsdl = Document::fromXmlFile($wsdlUri);
$wsdlDoc = Document::fromXmlFile($wsdl);
$configurator = new FlattenWsdlImports(
$wsdlUri,
FlatteningContext::forWsdl($wsdlUri, $wsdl, new StreamWrapperLoader())
$wsdl,
FlatteningContext::forWsdl($wsdl, $wsdlDoc, new StreamWrapperLoader())
);
$flattened = Document::fromUnsafeDocument($wsdl->toUnsafeDocument(), $configurator, comparable());
$flattened = Document::fromUnsafeDocument($wsdlDoc->toUnsafeDocument(), $configurator, comparable());

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

public function provideTestCases()
public static function provideTestCases()
{
yield 'only-import' => [
'wsdl' => FIXTURE_DIR.'/flattening/import.wsdl',
Expand Down
12 changes: 6 additions & 6 deletions tests/Unit/Xml/Configurator/FlattenXsdImportsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@ final class FlattenXsdImportsTest extends TestCase
*
* @dataProvider provideTestCases
*/
public function test_it_can_flatten_xsd_imports(string $wsdlUri, Document $expected, callable $xmlConfigurator): void
public function test_it_can_flatten_xsd_imports(string $wsdl, Document $expected, callable $xmlConfigurator): void
{
$wsdl = Document::fromXmlFile($wsdlUri);
$wsdlDoc = Document::fromXmlFile($wsdl);
$configurator = new FlattenXsdImports(
$wsdlUri,
FlatteningContext::forWsdl($wsdlUri, $wsdl, new StreamWrapperLoader())
$wsdl,
FlatteningContext::forWsdl($wsdl, $wsdlDoc, new StreamWrapperLoader())
);
$flattened = Document::fromUnsafeDocument($wsdl->toUnsafeDocument(), $configurator, $xmlConfigurator);
$flattened = Document::fromUnsafeDocument($wsdlDoc->toUnsafeDocument(), $configurator, $xmlConfigurator);

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

public function provideTestCases()
public static function provideTestCases()
{
yield 'single-xsd' => [
'wsdl' => FIXTURE_DIR.'/flattening/single-xsd.wsdl',
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Xml/Validator/SchemaSyntaxValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test_it_can_validate_errors(string $wsdl, array $errorMessages):
}
}

public function provideTestCases()
public static function provideTestCases()
{
yield 'no-errors' => [
'wsdl' => FIXTURE_DIR.'/wsdl.wsdl',
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Xml/Validator/WsdlSyntaxValidatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test_it_can_validate_errors(string $wsdl, array $errorMessages):
}
}

public function provideTestCases()
public static function provideTestCases()
{
yield 'no-errors' => [
'wsdl' => FIXTURE_DIR.'/wsdl.wsdl',
Expand Down
Binary file modified tools/php-cs-fixer.phar
Binary file not shown.

0 comments on commit de52583

Please sign in to comment.