Skip to content

Commit ed55cb0

Browse files
committed
fix: upgrade to PHPUnit 10 and PHP 8.1+, fix deprecated GitHub Actions
- Upgrade PHPUnit from 9.5 to 10.5 to fix PHP Parser compatibility issues with PHP 8.3 - Explicitly require nikic/php-parser ^5.3 to ensure compatibility - Upgrade minimum PHP version from 8.0 to 8.1 (required by PHPUnit 10) - Update PHPUnit configuration to PHPUnit 10 format - Update GitHub Actions artifact action from v3 to v4 - Remove PHP 8.0 from test matrix - Update documentation to reflect PHP 8.1+ requirement Fixes: - PHP Warning: Undefined array key 327 in nikic/php-parser - PhpParser\Lexer::getNextToken(): Return value must be of type int, null returned - Deprecated actions/upload-artifact v3
1 parent 0168219 commit ed55cb0

8 files changed

Lines changed: 257 additions & 383 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
os: [ubuntu-latest]
17-
php: [8.0, 8.1, 8.2, 8.3]
17+
php: [8.1, 8.2, 8.3]
1818
stability: [prefer-lowest, prefer-stable]
1919

2020
name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }}
@@ -90,7 +90,7 @@ jobs:
9090
9191
- name: Archive test results
9292
if: always()
93-
uses: actions/upload-artifact@v3
93+
uses: actions/upload-artifact@v4
9494
with:
9595
name: test-results-php-8.2
9696
path: |

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ A modern, developer-friendly PHP SDK for the [Paystack API](https://paystack.com
77
## Features
88

99
-**Complete API Coverage** - All Paystack API endpoints supported
10-
-**Type Safety** - Full PHP 8.0+ type declarations
10+
-**Type Safety** - Full PHP 8.1+ type declarations
1111
-**Parameter Validation** - Automatic validation of API parameters
1212
-**PSR-18 HTTP Client** - Compatible with any PSR-18 HTTP client
1313
-**Comprehensive Examples** - Detailed usage examples for all features
1414
-**Exception Handling** - Detailed error responses and exception handling
15-
-**Modern PHP** - Built for PHP 8.0+ with modern coding standards
15+
-**Modern PHP** - Built for PHP 8.1+ with modern coding standards
1616

1717
## Quick Links
1818

@@ -41,7 +41,7 @@ A modern, developer-friendly PHP SDK for the [Paystack API](https://paystack.com
4141

4242
## Requirements
4343

44-
- **PHP 8.0 or higher**
44+
- **PHP 8.1 or higher**
4545
- **PSR-18 HTTP Client** (any implementation)
4646
- **Composer** for dependency management
4747

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727
},
2828
"require": {
29-
"php": "^8.0",
29+
"php": "^8.1",
3030
"laminas/laminas-diactoros": "^3.5.0",
3131
"php-http/client-common": "^2.3",
3232
"php-http/discovery": "^1.14.1",
@@ -37,9 +37,10 @@
3737
"symfony/options-resolver": "^6.2"
3838
},
3939
"require-dev": {
40+
"nikic/php-parser": "^5.3",
4041
"php-http/curl-client": "^2.2",
4142
"php-http/mock-client": "^1.5",
42-
"phpunit/phpunit": "^9.5",
43+
"phpunit/phpunit": "^10.5",
4344
"symfony/var-dumper": "^6.2"
4445
},
4546
"scripts": {

0 commit comments

Comments
 (0)