diff --git a/.gitattributes b/.gitattributes index 972809c..fb00a20 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,11 +1,14 @@ /.editorconfig export-ignore +/.env.local.example export-ignore /.gitattributes export-ignore /.github export-ignore /.gitignore export-ignore +/CLAUDE.md export-ignore /README.md export-ignore /UPGRADE.md export-ignore /composer-dependency-analyser.php export-ignore /ecs.php export-ignore +/examples export-ignore /infection.json.dist export-ignore /phpstan.neon.dist export-ignore /phpunit.xml.dist export-ignore diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 226e032..7d82e01 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -28,7 +28,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" - extensions: "${{ env.PHP_EXTENSIONS }}" coverage: "none" - name: "Install composer dependencies" @@ -71,7 +70,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: coverage: "none" - extensions: "${{ env.PHP_EXTENSIONS }}" php-version: "${{ matrix.php-version }}" tools: "composer-dependency-analyser" @@ -109,7 +107,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" - extensions: "${{ env.PHP_EXTENSIONS }}" coverage: "none" - name: "Install composer dependencies" @@ -146,7 +143,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: php-version: "${{ matrix.php-version }}" - extensions: "${{ env.PHP_EXTENSIONS }}" coverage: "none" - name: "Install composer dependencies" @@ -178,7 +174,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: coverage: "pcov" - extensions: "${{ env.PHP_EXTENSIONS }}" php-version: "${{ matrix.php-version }}" - name: "Set up problem matchers for phpunit/phpunit" @@ -219,7 +214,6 @@ jobs: uses: "shivammathur/setup-php@v2" with: coverage: "pcov" - extensions: "${{ env.PHP_EXTENSIONS }}" php-version: "${{ matrix.php-version }}" - name: "Install composer dependencies" diff --git a/src/Callback/Callback.php b/src/Callback/Callback.php index e2adc36..7bb907d 100644 --- a/src/Callback/Callback.php +++ b/src/Callback/Callback.php @@ -23,7 +23,7 @@ * The body is NOT assumed to be a payment: check {@see self::$type} / {@see self::isPayment()} and only * call {@see self::payment()} when it is a payment. Use {@see self::toArray()} for any resource type. * - * Instances are produced by {@see CallbackHandler::handle()} / {@see CallbackHandler::handleRequest()}. + * Instances are produced by {@see CallbackHandler::handle()} / {@see CallbackHandler::handleRaw()}. */ final class Callback { diff --git a/tests/Client/LiveClientTest.php b/tests/Client/LiveClientTest.php index 546b11b..7bb9395 100644 --- a/tests/Client/LiveClientTest.php +++ b/tests/Client/LiveClientTest.php @@ -43,7 +43,8 @@ public function it_creates_a_payment_and_a_link(): void $client = $this->liveClient(); $payment = $client->payments()->create(new CreatePaymentRequest( - orderId: 'sdk-probe-' . bin2hex(random_bytes(6)), + // Quickpay limits order_id to 4-20 characters; 'probe-' + 12 hex chars = 18. + orderId: 'probe-' . bin2hex(random_bytes(6)), currency: 'DKK', )); self::assertGreaterThan(0, $payment->id);