From 79ab7faa0aab8b3359b0faf58f2b24f2eaf43e18 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 21:21:29 +0000 Subject: [PATCH 1/7] WIP --- composer.json | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/composer.json b/composer.json index db13cc9..a617a41 100644 --- a/composer.json +++ b/composer.json @@ -22,28 +22,28 @@ "php": "^8.2", "ext-soap": "*", "ext-xsl": "*", - "guzzlehttp/guzzle": "^7.5", - "illuminate/contracts": "^10.0", + "guzzlehttp/guzzle": "^7.8", + "illuminate/contracts": "^11.0", "monolog/monolog": "^3.5", "nyholm/psr7": "^1.8", "php-http/logger-plugin": "^1.3", "php-soap/psr18-wsse-middleware": "^2.3", "phpro/soap-client": "^3.1", - "spatie/laravel-package-tools": "^1.9.2", - "symfony/http-client": "^6.2" + "spatie/laravel-package-tools": "^1.16", + "symfony/http-client": "^6.4" }, "require-dev": { - "laravel/pint": "^1.5", - "nunomaduro/collision": "^7.0", - "nunomaduro/larastan": "^2.4.0", - "orchestra/testbench": "^8.0", - "pestphp/pest": "2.x-dev", - "pestphp/pest-plugin-laravel": "2.x-dev", - "phpstan/extension-installer": "^1.1", - "phpstan/phpstan-deprecation-rules": "^1.0", - "phpstan/phpstan-phpunit": "^1.0", - "phpunit/phpunit": "^10.0", - "spatie/laravel-ray": "^1.9" + "laravel/pint": "^1.14", + "nunomaduro/collision": "^8.1", + "larastan/larastan": "^2.9", + "orchestra/testbench": "^9.1", + "pestphp/pest": "^2.0", + "pestphp/pest-plugin-laravel": "^2.3", + "phpstan/extension-installer": "^1.3", + "phpstan/phpstan-deprecation-rules": "^1.1", + "phpstan/phpstan-phpunit": "^1.3", + "phpunit/phpunit": "^10.5", + "spatie/laravel-ray": "^1.35" }, "autoload": { "psr-4": { From 588202de1e7f76bb2bb9803c6724a5dec60a8085 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:06:09 +0000 Subject: [PATCH 2/7] WIP --- .github/workflows/run-tests.yml | 8 ++++---- composer.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index bff3889..334c9e9 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,13 +14,13 @@ jobs: matrix: # os: [ ubuntu-latest, windows-latest ] os: [ ubuntu-latest ] - php: [ 8.1 ] - laravel: [ 9.* ] + php: [ 8.3 ] + laravel: [ 11.* ] #stability: [ prefer-lowest, prefer-stable ] stability: [ prefer-stable ] include: - - laravel: 9.* - testbench: 7.* + - laravel: 11.* + testbench: 9.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} diff --git a/composer.json b/composer.json index a617a41..6a759e5 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": "^8.2", + "php": "^8.3", "ext-soap": "*", "ext-xsl": "*", "guzzlehttp/guzzle": "^7.8", From 2532f2b3ff6f68695947a4c8ff0b3dfd5d2c1b6e Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:24:59 +0000 Subject: [PATCH 3/7] WIP --- .github/workflows/run-tests.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 334c9e9..f3aca48 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -18,9 +18,6 @@ jobs: laravel: [ 11.* ] #stability: [ prefer-lowest, prefer-stable ] stability: [ prefer-stable ] - include: - - laravel: 11.* - testbench: 9.* name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }} From ac70a0f3cec5c2c267978b1da3ea22714fa42672 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:27:02 +0000 Subject: [PATCH 4/7] WIP --- .github/workflows/run-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f3aca48..35fbd1a 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -39,7 +39,7 @@ jobs: - name: Install dependencies run: | - composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update + composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update composer update --${{ matrix.stability }} --prefer-dist --no-interaction - name: Execute tests From 53492966ce7d8b709c2c93f0ebf90fa887a619cd Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Thu, 14 Mar 2024 22:29:11 +0000 Subject: [PATCH 5/7] WIP --- src/Client/PostfinanceClientFactory.php | 3 ++- tests/Feature/PingTest.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Client/PostfinanceClientFactory.php b/src/Client/PostfinanceClientFactory.php index 0e55445..bf73a3c 100644 --- a/src/Client/PostfinanceClientFactory.php +++ b/src/Client/PostfinanceClientFactory.php @@ -12,7 +12,6 @@ use Phpro\SoapClient\Caller\EngineCaller; use Phpro\SoapClient\Caller\EventDispatchingCaller; use Phpro\SoapClient\Soap\DefaultEngineFactory; -use function Psl\invariant; use Soap\ExtSoapEngine\ExtSoapOptions; use Soap\Psr18Transport\Middleware\RemoveEmptyNodesMiddleware; use Soap\Psr18Transport\Psr18Transport; @@ -21,6 +20,8 @@ use Soap\Psr18WsseMiddleware\WsseMiddleware; use Symfony\Component\EventDispatcher\EventDispatcher; +use function Psl\invariant; + class PostfinanceClientFactory { /** diff --git a/tests/Feature/PingTest.php b/tests/Feature/PingTest.php index aa361a1..42b99fa 100644 --- a/tests/Feature/PingTest.php +++ b/tests/Feature/PingTest.php @@ -1,7 +1,7 @@ Date: Fri, 15 Mar 2024 11:24:49 +0000 Subject: [PATCH 6/7] WIP --- .phpunit.cache/test-results | 1 + 1 file changed, 1 insertion(+) create mode 100644 .phpunit.cache/test-results diff --git a/.phpunit.cache/test-results b/.phpunit.cache/test-results new file mode 100644 index 0000000..6df30fb --- /dev/null +++ b/.phpunit.cache/test-results @@ -0,0 +1 @@ +{"version":"pest_2.34.4","defects":{"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":7},"times":{"P\\Tests\\Feature\\PingTest::__pest_evaluable_it_b2b_service_executePing_test":0.575,"P\\Tests\\Feature\\GetInvoicePayerTest::__pest_evaluable_it_b2b_service_getInvoicePayer_test":0.462,"P\\Tests\\Feature\\GetInvoiceListPayerTest::__pest_evaluable_it_b2b_service_getInvoiceListPayer_test":0.463}} \ No newline at end of file From 6d29bea28ed7d27993a1e62aa85c64de050b54c2 Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Fri, 15 Mar 2024 12:08:20 +0000 Subject: [PATCH 7/7] WIP --- .github/workflows/phpstan.yml | 2 +- .github/workflows/run-tests.yml | 2 +- composer.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 557d263..3c93dae 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -16,7 +16,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.2' coverage: none - name: Install composer dependencies diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 35fbd1a..8df08d5 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -14,7 +14,7 @@ jobs: matrix: # os: [ ubuntu-latest, windows-latest ] os: [ ubuntu-latest ] - php: [ 8.3 ] + php: [ 8.2, 8.3 ] laravel: [ 11.* ] #stability: [ prefer-lowest, prefer-stable ] stability: [ prefer-stable ] diff --git a/composer.json b/composer.json index 6a759e5..d96e4c6 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": "^8.3", + "php": ">=8.2", "ext-soap": "*", "ext-xsl": "*", "guzzlehttp/guzzle": "^7.8",