Skip to content

Commit e9e3601

Browse files
committed
Maintenance
Updated for PHP 8.4: - Update php.yml - Update phpstan.neon.dist - Fixed return types in docblock (phpstan) - Fixed nullable param type deprecations - Updated dependencies
1 parent 0fccc3d commit e9e3601

10 files changed

Lines changed: 1247 additions & 870 deletions

.github/workflows/php.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ jobs:
2525
matrix:
2626
php-version:
2727
- "8.3"
28+
- "8.4"
2829
dependency-versions:
2930
- "lowest"
3031
- "highest"
@@ -40,9 +41,10 @@ jobs:
4041
coverage: none
4142

4243
- name: Install Composer dependencies
43-
uses: ramsey/composer-install@v2
44+
uses: ramsey/composer-install@v3
4445
with:
4546
dependency-versions: ${{ matrix.dependency-versions }}
47+
ignore-cache: "yes"
4648

4749
- name: Run PHPUnit
4850
run: vendor/bin/phpunit tests --no-coverage

composer.json

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
11
{
2-
"name": "tomkyle/matomo-api-client",
3-
"description": "Client library for interacting with the Matomo API. Supports retry logic and PSR-6 caches.",
4-
"keywords": ["matomo", "api", "client"],
2+
"name": "tomkyle/matomo-api-client",
3+
"description": "Client library for interacting with the Matomo API. Supports retry logic and PSR-6 caches.",
4+
"keywords": ["matomo", "api", "client"],
55

6-
"authors": [{
7-
"name": "Carsten Witt",
8-
"email": "tomkyle@posteo.de",
9-
"role": "Developer"
10-
}],
6+
"authors": [{
7+
"name": "Carsten Witt",
8+
"email": "tomkyle@posteo.de",
9+
"role": "Developer"
10+
}],
1111

12-
"license": "MIT",
12+
"license": "MIT",
1313

14-
"autoload": {
15-
"psr-4": {
16-
"tomkyle\\MatomoApiClient\\": "src/"
17-
}
18-
},
14+
"autoload": {
15+
"psr-4": {
16+
"tomkyle\\MatomoApiClient\\": "src/"
17+
}
18+
},
1919

20-
"autoload-dev": {
21-
"psr-4": {
22-
"tests\\": "tests/"
23-
}
24-
},
20+
"autoload-dev": {
21+
"psr-4": {
22+
"tests\\": "tests/"
23+
}
24+
},
2525

26-
"require": {
27-
"php": "^8.3",
28-
"ext-json": "*",
29-
"psr/log": "^1.1|^2.0|^3.0",
30-
"psr/cache": "^1.0|^2.0|^3.0",
31-
"psr/http-factory": "^1.0",
32-
"psr/http-client": "^1.0",
33-
"psr/log": "^2.0|^3.0",
34-
"guzzlehttp/psr7": "^2.7",
35-
"guzzlehttp/guzzle": "^7.8"
36-
},
26+
"require": {
27+
"php": "^8.3",
28+
"ext-json": "*",
29+
"psr/log": "^1.1|^2.0|^3.0",
30+
"psr/cache": "^1.0|^2.0|^3.0",
31+
"psr/http-factory": "^1.0",
32+
"psr/http-client": "^1.0",
33+
"psr/log": "^2.0|^3.0",
34+
"guzzlehttp/psr7": "^2.7",
35+
"guzzlehttp/guzzle": "^7.8"
36+
},
3737

38-
"require-dev": {
39-
"phpunit/phpunit": "^11.0",
40-
"friendsofphp/php-cs-fixer": "^3.63",
41-
"phpstan/phpstan": "^1.0|^2.0",
42-
"tomkyle/find-run-test": "^1.0",
43-
"rector/rector": "^1.2"
44-
}
38+
"require-dev": {
39+
"phpunit/phpunit": "^12.0",
40+
"friendsofphp/php-cs-fixer": "^3.63",
41+
"phpstan/phpstan": "^2.0",
42+
"tomkyle/find-run-test": "^1.0",
43+
"rector/rector": "^2.0"
44+
}
4545
}

0 commit comments

Comments
 (0)