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 893ab16 commit 00c6d5b
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 19 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' ]
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
4 changes: 2 additions & 2 deletions .phive/phars.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phive xmlns="https://phar.io/phive">
<phar name="psalm" version="^5.9.0" installed="5.16.0" location="./tools/psalm.phar" copy="true"/>
<phar name="php-cs-fixer" version="^3.13.0" installed="3.39.0" location="./tools/php-cs-fixer.phar" copy="true"/>
<phar name="psalm" version="^5.9.0" installed="5.26.1" location="./tools/psalm.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 @@ -20,17 +20,17 @@
}
],
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
"ext-soap": "*",
"ext-dom": "*",
"azjezz/psl": "^2.1",
"php-soap/engine": "^1.3|^2.0",
"php-soap/wsdl": "^1.3",
"azjezz/psl": "^3.0",
"php-soap/engine": "^2.13",
"php-soap/wsdl": "^1.12",
"symfony/options-resolver": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
"php-soap/engine-integration-tests": "^1.4",
"php-soap/xml": "^1.4",
"php-soap/engine-integration-tests": "^1.9",
"php-soap/xml": "^1.8",
"phpunit/phpunit": "^10.0.19"
}
}
2 changes: 1 addition & 1 deletion src/ErrorHandling/ExtSoapErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function handleInternalErrors(callable $fun)
{
[$result, $lastMessage] = (new self)($fun);

if ($lastMessage) {
if ($lastMessage !== null) {
throw RequestException::internalSoapError($lastMessage);
}

Expand Down
2 changes: 1 addition & 1 deletion src/ExtSoapDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public static function createFromOptions(ExtSoapOptions $options): self
);
}

public static function createFromClient(AbusedClient $client, Metadata $metadata = null): self
public static function createFromClient(AbusedClient $client, ?Metadata $metadata = null): self
{
$metadata = $metadata ?? new LazyInMemoryMetadata(new ExtSoapMetadata($client));

Expand Down
2 changes: 1 addition & 1 deletion src/ExtSoapOptionsResolverFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ final class ExtSoapOptionsResolverFactory
public static function createForWsdl(?string $wsdl): OptionsResolver
{
$resolver = self::create();
if (!$wsdl) {
if ($wsdl === null) {
$resolver = clone $resolver;
$resolver->setRequired(['uri', 'location']);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Wsdl/PermanentWsdlLoaderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __invoke(string $location): string
return $file;
}

write($file, ($this->loader)($location), WriteMode::TRUNCATE);
write($file, ($this->loader)($location), WriteMode::Truncate);

return $file;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Wsdl/TemporaryWsdlLoaderProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function __invoke(string $location): string
$namingStrategy = $this->namingStrategy ?? new Md5Strategy();
$file = $cacheDir . DIRECTORY_SEPARATOR . $namingStrategy($location);

write($file, ($this->loader)($location), WriteMode::TRUNCATE);
write($file, ($this->loader)($location), WriteMode::Truncate);

return $file;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/Unit/Metadata/MethodsParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function test_it_can_parse_ext_soap_function_strings()
new Method(
'TestReturnList',
new ParameterCollection(),
XsdType::create('array')
XsdType::create('array')->withBaseType('array')
),
$result->fetchByName('TestReturnList')
);
Expand All @@ -87,7 +87,7 @@ public function test_it_can_parse_ext_soap_function_strings()
new Parameter('parameter1', XsdType::create('Test1')),
new Parameter('parameter2', XsdType::create('Test2')),
),
XsdType::create('array')
XsdType::create('array')->withBaseType('array')
),
$result->fetchByName('TestReturnListWithParams')
);
Expand Down
Binary file modified tools/php-cs-fixer.phar
Binary file not shown.
Binary file modified tools/psalm.phar
Binary file not shown.

0 comments on commit 00c6d5b

Please sign in to comment.