Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,18 @@ jobs:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
laravel: ['11.*', '12.*']
laravel: ['11.*', '12.*', '13.*']
exclude:
# Laravel 13 requires PHP 8.3+.
- php: '8.2'
laravel: '13.*'
include:
- laravel: '11.*'
testbench: '9.*'
- laravel: '12.*'
testbench: '10.*'
- laravel: '13.*'
testbench: '11.*'

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}

Expand Down Expand Up @@ -73,7 +79,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
php-version: '8.4'
extensions: mbstring, json
coverage: none

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
listener writing to a configurable log channel.
- `AbstractAdapterRequest` / `AbstractAdapterResponse` base DTOs and the
`ExtractsTolerantFields` trait for casing-tolerant parsing of inconsistent third-party APIs.
- Laravel 13 support (`illuminate/*` `^13.0`), tested in CI on PHP 8.3 and 8.4 against
`orchestra/testbench` `^11.0`. Laravel 11 and 12 remain supported.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ package extracts that into a single abstraction:

## Requirements

- PHP 8.2+
- Laravel 11 or 12
- PHP 8.2+ (PHP 8.3+ for Laravel 13)
- Laravel 11, 12, or 13

## Installation

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@
],
"require": {
"php": "^8.2",
"illuminate/support": "^11.0|^12.0",
"illuminate/http": "^11.0|^12.0",
"illuminate/contracts": "^11.0|^12.0"
"illuminate/support": "^11.0|^12.0|^13.0",
"illuminate/http": "^11.0|^12.0|^13.0",
"illuminate/contracts": "^11.0|^12.0|^13.0"
},
"require-dev": {
"orchestra/testbench": "^9.0|^10.0",
"pestphp/pest": "^2.0|^3.0",
"pestphp/pest-plugin-laravel": "^2.0|^3.0",
"orchestra/testbench": "^9.0|^10.0|^11.0",
"pestphp/pest": "^2.0|^3.0|^4.0",
"pestphp/pest-plugin-laravel": "^2.0|^3.0|^4.0",
"larastan/larastan": "^2.0|^3.0",
"laravel/pint": "^1.0"
},
Expand Down
6 changes: 5 additions & 1 deletion src/AdapterManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ public function getDefaultDriver(): string
}

/**
* @param array<int, mixed> $parameters
* The key type is left open because Laravel narrowed the parent's
* `$parameters` docblock from `array` to `array<string, mixed>` in 13.x,
* and this override has to stay compatible across 11.x-13.x.
*
* @param array<array-key, mixed> $parameters
* @return AbstractApiClient
*/
public function __call($method, $parameters)
Expand Down
Loading