diff --git a/.github/workflows/analyzers.yaml b/.github/workflows/analyzers.yaml
index 50d7f5a..fbdbd31 100644
--- a/.github/workflows/analyzers.yaml
+++ b/.github/workflows/analyzers.yaml
@@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
- php-versions: [ '8.2', '8.3' ]
+ php-versions: [ '8.3', '8.4', '8.5' ]
composer-options: [ '--ignore-platform-req=php+' ]
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
@@ -23,4 +23,5 @@ jobs:
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
- name: Run the tests
- run: ./vendor/bin/psalm
+ run: ./vendor/bin/psalm --no-cache
+ continue-on-error: ${{ matrix.php-versions == '8.5' }}
diff --git a/.github/workflows/code-style.yaml b/.github/workflows/code-style.yaml
index 65e0c34..59d5362 100644
--- a/.github/workflows/code-style.yaml
+++ b/.github/workflows/code-style.yaml
@@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
- php-versions: [ '8.2', '8.3', '8.4' ]
+ php-versions: [ '8.3', '8.4', '8.5' ]
composer-options: [ '--ignore-platform-req=php+' ]
fail-fast: false
name: PHP ${{ matrix.php-versions }} @ ${{ matrix.operating-system }}
@@ -23,4 +23,4 @@ jobs:
- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer-options }}
- name: Run the tests
- run: PHP_CS_FIXER_IGNORE_ENV=1 ./tools/php-cs-fixer.phar fix --dry-run --diff
+ run: PHP_CS_FIXER_IGNORE_ENV=1 ./vendor/bin/php-cs-fixer fix --dry-run --diff
diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index f819719..f8cde3d 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -7,7 +7,7 @@ jobs:
strategy:
matrix:
operating-system: [ubuntu-latest]
- php-versions: [ '8.2', '8.3', '8.4' ]
+ php-versions: [ '8.3', '8.4', '8.5' ]
composer-options: [ '--ignore-platform-req=php+' ]
dependency-preference: ['current', 'lowest', 'stable']
fail-fast: false
diff --git a/.phive/phars.xml b/.phive/phars.xml
deleted file mode 100644
index 4aa93da..0000000
--- a/.phive/phars.xml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/composer.json b/composer.json
index 957a1a3..3e68f25 100644
--- a/composer.json
+++ b/composer.json
@@ -20,22 +20,23 @@
}
],
"require": {
- "php": "~8.2.0 || ~8.3.0 || ~8.4.0",
- "azjezz/psl": "^3.0",
+ "php": "~8.3.0 || ~8.4.0 || ~8.5.0",
+ "azjezz/psl": "^3.0 || ^4.0",
"veewee/reflecta": "~0.11",
"veewee/xml": "^3.3",
- "php-soap/engine": "^2.14",
- "php-soap/wsdl": "^1.12",
- "php-soap/xml": "^1.8",
- "php-soap/wsdl-reader": "~0.26"
+ "php-soap/engine": "^2.16",
+ "php-soap/wsdl": "^1.14",
+ "php-soap/xml": "^1.9",
+ "php-soap/wsdl-reader": "^0.27"
},
"require-dev": {
- "vimeo/psalm": "^5.26",
- "phpunit/phpunit": "^10.5",
+ "vimeo/psalm": "~6.13",
+ "phpunit/phpunit": "~12.4",
+ "php-cs-fixer/shim": "~3.88",
"symfony/var-dumper": "^7.0 || ^6.4",
"php-standard-library/psalm-plugin": "^2.3",
- "php-soap/engine-integration-tests": "^1.9",
- "php-soap/psr18-transport": "^1.7",
+ "php-soap/engine-integration-tests": "^1.10",
+ "php-soap/psr18-transport": "^1.8",
"guzzlehttp/guzzle": "^7.8"
},
"config": {
diff --git a/phpunit.xml b/phpunit.xml
index e54c752..2f4f519 100644
--- a/phpunit.xml
+++ b/phpunit.xml
@@ -1,6 +1,6 @@
+ failOnWarning="true"
+ failOnPhpunitWarning="true">
tests/Integration
diff --git a/psalm.xml b/psalm.xml
index ec15026..7a494c8 100644
--- a/psalm.xml
+++ b/psalm.xml
@@ -6,7 +6,8 @@
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
findUnusedBaselineEntry="true"
- findUnusedCode="true"
+ findUnusedCode="false"
+ ensureOverrideAttribute="false"
>
@@ -18,11 +19,4 @@
-
-
-
-
-
-
-
diff --git a/src/Encoder.php b/src/Encoder.php
index 149f60a..d2b7b44 100644
--- a/src/Encoder.php
+++ b/src/Encoder.php
@@ -26,7 +26,9 @@ public function encode(string $method, array $arguments): SoapRequest
$methodInfo = $this->metadata->getMethods()->fetchByName($method);
$meta = $methodInfo->getMeta();
$methodContext = new MethodContext($methodInfo, $this->metadata, $this->registry, $this->namespaces);
- $soapVersion = $meta->soapVersion()->map(SoapVersion::from(...))->unwrapOr(SoapVersion::SOAP_12);
+ $soapVersion = $meta->soapVersion()
+ ->map(static fn ($version) => SoapVersion::from($version))
+ ->unwrapOr(SoapVersion::SOAP_12);
$iso = (new RequestEncoder())->iso($methodContext);
return new SoapRequest(
diff --git a/src/Encoder/Method/RequestEncoder.php b/src/Encoder/Method/RequestEncoder.php
index dc9fad8..d9c7636 100644
--- a/src/Encoder/Method/RequestEncoder.php
+++ b/src/Encoder/Method/RequestEncoder.php
@@ -30,7 +30,9 @@ public function iso(MethodContext $context): Iso
{
$meta = $context->method->getMeta();
$context = $context->withBindingUse(
- $meta->inputBindingUsage()->map(BindingUse::from(...))->unwrapOr(BindingUse::LITERAL)
+ $meta->inputBindingUsage()
+ ->map(static fn ($value) => BindingUse::from($value))
+ ->unwrapOr(BindingUse::LITERAL)
);
/** @var Iso, non-empty-string> */
@@ -57,8 +59,11 @@ private function encode(MethodContext $context, array $arguments): string
{
$method = $context->method;
$meta = $method->getMeta();
- $soapVersion = $meta->soapVersion()->map(SoapVersion::from(...))->unwrapOr(SoapVersion::SOAP_12);
- $encodingStyle = $meta->inputEncodingStyle()->map(EncodingStyle::from(...));
+ $soapVersion = $meta->soapVersion()
+ ->map(static fn ($value) => SoapVersion::from($value))
+ ->unwrapOr(SoapVersion::SOAP_12);
+ $encodingStyle = $meta->inputEncodingStyle()
+ ->map(static fn ($value) => EncodingStyle::from($value));
$requestParams = map_with_key(
$method->getParameters(),
diff --git a/src/Encoder/Method/ResponseEncoder.php b/src/Encoder/Method/ResponseEncoder.php
index 80615e5..a0ac345 100644
--- a/src/Encoder/Method/ResponseEncoder.php
+++ b/src/Encoder/Method/ResponseEncoder.php
@@ -28,7 +28,9 @@ public function iso(MethodContext $context): Iso
{
$meta = $context->method->getMeta();
$context = $context->withBindingUse(
- $meta->outputBindingUsage()->map(BindingUse::from(...))->unwrapOr(BindingUse::LITERAL)
+ $meta->outputBindingUsage()
+ ->map(static fn ($value) => BindingUse::from($value))
+ ->unwrapOr(BindingUse::LITERAL)
);
/** @var Iso, string> */
@@ -56,8 +58,11 @@ private function encode(MethodContext $context, array $arguments): string
return '';
}
- $soapVersion = $meta->soapVersion()->map(SoapVersion::from(...))->unwrapOr(SoapVersion::SOAP_12);
- $encodingStyle = $meta->outputEncodingStyle()->map(EncodingStyle::from(...));
+ $soapVersion = $meta->soapVersion()
+ ->map(static fn ($value) => SoapVersion::from($value))
+ ->unwrapOr(SoapVersion::SOAP_12);
+ $encodingStyle = $meta->outputEncodingStyle()
+ ->map(static fn ($value) => EncodingStyle::from($value));
$returnType = $method->getReturnType();
$typeContext = $context->createXmlEncoderContextForType($returnType);
diff --git a/src/Encoder/SimpleType/Base64BinaryTypeEncoder.php b/src/Encoder/SimpleType/Base64BinaryTypeEncoder.php
index 85d9a85..47316de 100644
--- a/src/Encoder/SimpleType/Base64BinaryTypeEncoder.php
+++ b/src/Encoder/SimpleType/Base64BinaryTypeEncoder.php
@@ -7,6 +7,8 @@
use Soap\Encoding\Encoder\XmlEncoder;
use Soap\Encoding\Restriction\WhitespaceRestriction;
use VeeWee\Reflecta\Iso\Iso;
+use function Psl\Encoding\Base64\decode;
+use function Psl\Encoding\Base64\encode;
/**
* @implements XmlEncoder
@@ -19,8 +21,8 @@ final class Base64BinaryTypeEncoder implements XmlEncoder
public function iso(Context $context): Iso
{
return (new Iso(
- static fn (string $value): string => base64_encode($value),
- static fn (string $value): string => WhitespaceRestriction::collapse(base64_decode($value, true)),
+ static fn (string $value): string => encode($value),
+ static fn (string $value): string => WhitespaceRestriction::collapse(decode($value)),
));
}
}
diff --git a/src/Encoder/SimpleType/DateTimeTypeEncoder.php b/src/Encoder/SimpleType/DateTimeTypeEncoder.php
index c5bfa61..d351254 100644
--- a/src/Encoder/SimpleType/DateTimeTypeEncoder.php
+++ b/src/Encoder/SimpleType/DateTimeTypeEncoder.php
@@ -10,7 +10,7 @@
use VeeWee\Reflecta\Iso\Iso;
/**
- * @implements XmlEncoder<\DateTimeInterface, string>
+ * @implements XmlEncoder
*/
final class DateTimeTypeEncoder implements XmlEncoder
{
diff --git a/src/Encoder/SimpleType/DateTypeEncoder.php b/src/Encoder/SimpleType/DateTypeEncoder.php
index d0ff0c8..345afea 100644
--- a/src/Encoder/SimpleType/DateTypeEncoder.php
+++ b/src/Encoder/SimpleType/DateTypeEncoder.php
@@ -10,7 +10,7 @@
use VeeWee\Reflecta\Iso\Iso;
/**
- * @implements XmlEncoder<\DateTimeInterface, string>
+ * @implements XmlEncoder
*/
final class DateTypeEncoder implements XmlEncoder
{
diff --git a/src/Encoder/SimpleType/HexBinaryTypeEncoder.php b/src/Encoder/SimpleType/HexBinaryTypeEncoder.php
index 3cceadf..dd75565 100644
--- a/src/Encoder/SimpleType/HexBinaryTypeEncoder.php
+++ b/src/Encoder/SimpleType/HexBinaryTypeEncoder.php
@@ -7,6 +7,8 @@
use Soap\Encoding\Encoder\XmlEncoder;
use Soap\Encoding\Restriction\WhitespaceRestriction;
use VeeWee\Reflecta\Iso\Iso;
+use function Psl\Encoding\Hex\decode;
+use function Psl\Encoding\Hex\encode;
/**
* @implements XmlEncoder
@@ -19,8 +21,8 @@ final class HexBinaryTypeEncoder implements XmlEncoder
public function iso(Context $context): Iso
{
return (new Iso(
- static fn (string $value): string => mb_strtoupper(bin2hex($value)),
- static fn (string $value): string => WhitespaceRestriction::collapse(hex2bin($value)),
+ static fn (string $value): string => mb_strtoupper(encode($value)),
+ static fn (string $value): string => WhitespaceRestriction::collapse(decode($value)),
));
}
}
diff --git a/src/Normalizer/PhpPropertyNameNormalizer.php b/src/Normalizer/PhpPropertyNameNormalizer.php
index 77d3373..59ff625 100644
--- a/src/Normalizer/PhpPropertyNameNormalizer.php
+++ b/src/Normalizer/PhpPropertyNameNormalizer.php
@@ -19,7 +19,7 @@ public static function normalize(string $name): string
}
/**
- * @param literal-string $regexp
+ * @param non-empty-string $regexp
*/
private static function camelCase(string $word, string $regexp):string
{
diff --git a/tests/Unit/Encoder/AbstractEncoderTests.php b/tests/Unit/Encoder/AbstractEncoderTests.php
index 3823d1f..dc741f0 100644
--- a/tests/Unit/Encoder/AbstractEncoderTests.php
+++ b/tests/Unit/Encoder/AbstractEncoderTests.php
@@ -3,6 +3,7 @@
namespace Soap\Encoding\Test\Unit\Encoder;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Encoder\Context;
use Soap\Encoding\Encoder\XmlEncoder;
@@ -17,10 +18,7 @@ abstract class AbstractEncoderTests extends TestCase
*/
abstract public static function provideIsomorphicCases(): iterable;
- /**
- *
- * @dataProvider provideIsomorphicCases
- */
+ #[DataProvider('provideIsomorphicCases')]
public function test_it_can_decode_from_xml(XmlEncoder $encoder, Context $context, ?string $xml, mixed $data): void
{
$iso = $encoder->iso($context);
@@ -29,10 +27,7 @@ public function test_it_can_decode_from_xml(XmlEncoder $encoder, Context $contex
static::assertEquals($data, $actual);
}
- /**
- *
- * @dataProvider provideIsomorphicCases
- */
+ #[DataProvider('provideIsomorphicCases')]
public function test_it_can_encode_into_xml(XmlEncoder $encoder, Context $context, ?string $xml, mixed $data): void
{
$iso = $encoder->iso($context);
diff --git a/tests/Unit/Encoder/Method/AbstractMethodEncoderTests.php b/tests/Unit/Encoder/Method/AbstractMethodEncoderTests.php
index a2febed..f0d5bc7 100644
--- a/tests/Unit/Encoder/Method/AbstractMethodEncoderTests.php
+++ b/tests/Unit/Encoder/Method/AbstractMethodEncoderTests.php
@@ -2,6 +2,7 @@
namespace Soap\Encoding\Test\Unit\Encoder\Method;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Encoder\Method\MethodContext;
use Soap\Encoding\Encoder\Method\SoapMethodEncoder;
@@ -17,10 +18,7 @@ abstract class AbstractMethodEncoderTests extends TestCase
*/
abstract public static function provideIsomorphicCases(): iterable;
- /**
- *
- * @dataProvider provideIsomorphicCases
- */
+ #[DataProvider('provideIsomorphicCases')]
public function test_it_can_decode_from_xml(SoapMethodEncoder $encoder, MethodContext $context, string $xml, mixed $data): void
{
$iso = $encoder->iso($context);
@@ -29,10 +27,7 @@ public function test_it_can_decode_from_xml(SoapMethodEncoder $encoder, MethodCo
static::assertEquals($data, $actual);
}
- /**
- *
- * @dataProvider provideIsomorphicCases
- */
+ #[DataProvider('provideIsomorphicCases')]
public function test_it_can_encode_into_xml(SoapMethodEncoder $encoder, MethodContext $context, string $xml, mixed $data): void
{
$iso = $encoder->iso($context);
diff --git a/tests/Unit/Fault/Encoder/AbstractFaultEncoderTests.php b/tests/Unit/Fault/Encoder/AbstractFaultEncoderTests.php
index 40b45b5..5de5145 100644
--- a/tests/Unit/Fault/Encoder/AbstractFaultEncoderTests.php
+++ b/tests/Unit/Fault/Encoder/AbstractFaultEncoderTests.php
@@ -3,6 +3,7 @@
namespace Soap\Encoding\Test\Unit\Fault\Encoder;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Encoder\Context;
use Soap\Encoding\Encoder\XmlEncoder;
@@ -18,10 +19,7 @@ abstract class AbstractFaultEncoderTests extends TestCase
*/
abstract public static function provideIsomorphicCases(): iterable;
- /**
- *
- * @dataProvider provideIsomorphicCases
- */
+ #[DataProvider('provideIsomorphicCases')]
public function test_it_can_decode_from_xml(SoapFaultEncoder $encoder, ?string $xml, mixed $data): void
{
$iso = $encoder->iso();
@@ -30,10 +28,7 @@ public function test_it_can_decode_from_xml(SoapFaultEncoder $encoder, ?string $
static::assertEquals($data, $actual);
}
- /**
- *
- * @dataProvider provideIsomorphicCases
- */
+ #[DataProvider('provideIsomorphicCases')]
public function test_it_can_encode_into_xml(SoapFaultEncoder $encoder, ?string $xml, mixed $data): void
{
$iso = $encoder->iso();
diff --git a/tests/Unit/Normalizer/PhpPropertyNameNormalizerTest.php b/tests/Unit/Normalizer/PhpPropertyNameNormalizerTest.php
index c796aee..261ca45 100644
--- a/tests/Unit/Normalizer/PhpPropertyNameNormalizerTest.php
+++ b/tests/Unit/Normalizer/PhpPropertyNameNormalizerTest.php
@@ -4,6 +4,7 @@
namespace Soap\Encoding\Test\Unit\Normalizer;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Normalizer\PhpPropertyNameNormalizer;
@@ -11,10 +12,7 @@
final class PhpPropertyNameNormalizerTest extends TestCase
{
- /**
- *
- * @dataProvider provideCases
- */
+ #[DataProvider('provideCases')]
public function test_it_can_normalize(string $in, string $expected): void
{
static::assertEquals($expected, PhpPropertyNameNormalizer::normalize($in));
diff --git a/tests/Unit/Restriction/WhitespaceRestrictionTest.php b/tests/Unit/Restriction/WhitespaceRestrictionTest.php
index bc095c8..1d12630 100644
--- a/tests/Unit/Restriction/WhitespaceRestrictionTest.php
+++ b/tests/Unit/Restriction/WhitespaceRestrictionTest.php
@@ -4,34 +4,26 @@
namespace Soap\Encoding\Test\Unit\Restriction;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Restriction\WhitespaceRestriction;
#[CoversClass(WhitespaceRestriction::class)]
final class WhitespaceRestrictionTest extends TestCase
{
- /**
- *
- * @dataProvider providePreserveValues
- */
+ #[DataProvider('providePreserveValues')]
public function test_it_can_preserve(string $input, string $expected): void
{
static::assertSame($expected, WhitespaceRestriction::preserve($input));
}
- /**
- *
- * @dataProvider provideReplaceValues
- */
+ #[DataProvider('provideReplaceValues')]
public function test_it_can_replace(string $input, string $expected): void
{
static::assertSame($expected, WhitespaceRestriction::replace($input));
}
- /**
- *
- * @dataProvider provideCollapseValues
- */
+ #[DataProvider('provideCollapseValues')]
public function test_it_can_collapse(string $input, string $expected): void
{
static::assertSame($expected, WhitespaceRestriction::collapse($input));
diff --git a/tests/Unit/Xml/Reader/OperationReaderTest.php b/tests/Unit/Xml/Reader/OperationReaderTest.php
index b8eab53..d108e38 100644
--- a/tests/Unit/Xml/Reader/OperationReaderTest.php
+++ b/tests/Unit/Xml/Reader/OperationReaderTest.php
@@ -5,6 +5,7 @@
namespace Soap\Encoding\Test\Unit\Xml\Writer;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Xml\Node\Element;
use Soap\Encoding\Xml\Reader\OperationReader;
@@ -15,10 +16,7 @@
#[CoversClass(OperationReader::class)]
final class OperationReaderTest extends TestCase
{
- /**
- *
- * @dataProvider provideEnvelopeCases
- */
+ #[DataProvider('provideEnvelopeCases')]
public function test_it_can_read_a_soap_envelope(MethodMeta $meta, string $envelope, array $expected): void
{
$reader = new OperationReader($meta);
diff --git a/tests/Unit/Xml/Reader/SoapEnvelopeReaderTest.php b/tests/Unit/Xml/Reader/SoapEnvelopeReaderTest.php
index 3ca92c0..13cdcd4 100644
--- a/tests/Unit/Xml/Reader/SoapEnvelopeReaderTest.php
+++ b/tests/Unit/Xml/Reader/SoapEnvelopeReaderTest.php
@@ -5,6 +5,7 @@
namespace Soap\Encoding\Test\Unit\Xml\Writer;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Exception\SoapFaultException;
@@ -17,10 +18,7 @@
#[CoversClass(SoapFaultGuard::class)]
final class SoapEnvelopeReaderTest extends TestCase
{
- /**
- *
- * @dataProvider provideEnvelopeCases
- */
+ #[DataProvider('provideEnvelopeCases')]
public function test_it_can_read_a_soap_envelope(SoapVersion $version, string $envelope, string $expected): void
{
$reader = new SoapEnvelopeReader();
diff --git a/tests/Unit/Xml/Writer/OperationBuilderTest.php b/tests/Unit/Xml/Writer/OperationBuilderTest.php
index 3439608..e1a0dfa 100644
--- a/tests/Unit/Xml/Writer/OperationBuilderTest.php
+++ b/tests/Unit/Xml/Writer/OperationBuilderTest.php
@@ -5,6 +5,7 @@
namespace Soap\Encoding\Test\Unit\Xml\Writer;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Xml\Writer\OperationBuilder;
use Soap\Engine\Metadata\Model\MethodMeta;
@@ -20,8 +21,8 @@ final class OperationBuilderTest extends TestCase
{
/**
* @param list $parts
- * @dataProvider provideOperationCases
*/
+ #[DataProvider('provideOperationCases')]
public function test_it_can_write_a_soap_operation(MethodMeta $meta, array $parts, string $expected): void
{
$actual = Writer::inMemory()
diff --git a/tests/Unit/Xml/Writer/ParameterBuilderTest.php b/tests/Unit/Xml/Writer/ParameterBuilderTest.php
index f83c767..76a94e7 100644
--- a/tests/Unit/Xml/Writer/ParameterBuilderTest.php
+++ b/tests/Unit/Xml/Writer/ParameterBuilderTest.php
@@ -4,6 +4,7 @@
namespace Soap\Encoding\Test\Unit\Xml\Writer;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Soap\Encoding\Encoder\Context;
use Soap\Encoding\EncoderRegistry;
@@ -25,9 +26,7 @@
#[CoversClass(ParameterBuilder::class)]
final class ParameterBuilderTest extends TestCase
{
- /**
- * @dataProvider provideParameterCases
- */
+ #[DataProvider('provideParameterCases')]
public function test_it_can_write_a_soap_operation(MethodMeta $meta, Context $context, mixed $value, string $expected): void
{
$actual = Writer::inMemory()
diff --git a/tests/Unit/Xml/Writer/SoapEnvelopeWriterTest.php b/tests/Unit/Xml/Writer/SoapEnvelopeWriterTest.php
index 928b56b..ec334a3 100644
--- a/tests/Unit/Xml/Writer/SoapEnvelopeWriterTest.php
+++ b/tests/Unit/Xml/Writer/SoapEnvelopeWriterTest.php
@@ -6,6 +6,7 @@
use Exception;
use PHPUnit\Framework\Attributes\CoversClass;
+use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Psl\Option\Option;
use Soap\Encoding\Exception\EncodingException;
@@ -22,10 +23,7 @@
#[CoversClass(SoapEnvelopeWriter::class)]
final class SoapEnvelopeWriterTest extends TestCase
{
- /**
- *
- * @dataProvider provideEnvelopeCases
- */
+ #[DataProvider('provideEnvelopeCases')]
public function test_it_can_write_a_soap_envelope(
SoapVersion $version,
BindingUse $bindingUse,
diff --git a/tools/php-cs-fixer.phar b/tools/php-cs-fixer.phar
deleted file mode 100755
index d071fa5..0000000
Binary files a/tools/php-cs-fixer.phar and /dev/null differ