Skip to content

Commit 0c1dbd8

Browse files
authored
chore!: update dependencies and drop PHP 7.x support (#37)
1 parent 5b901c7 commit 0c1dbd8

File tree

5 files changed

+14
-10
lines changed

5 files changed

+14
-10
lines changed

.ddev/config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: wp-stash
22
type: php
33
docroot: .ddev/wordpress
4-
php_version: "8.0"
4+
php_version: "8.2"
55
webserver_type: nginx-fpm
66
router_http_port: "80"
77
router_https_port: "443"
@@ -17,7 +17,7 @@ use_dns_when_possible: true
1717
composer_version: "2"
1818
nodejs_version: "16"
1919
web_environment:
20-
- WP_VERSION=6.2
20+
- WP_VERSION=6.9
2121
- WP_LOCALE=en_US
2222
- WP_TITLE=Syde WP Stash
2323
- ADMIN_USER=admin

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
uses: inpsyde/reusable-workflows/.github/workflows/tests-unit-php.yml@main
1313
strategy:
1414
matrix:
15-
php: ["7.3", "7.4", "8.0", "8.1"]
15+
php: ["8.0", "8.1", "8.2"]
1616
secrets:
1717
COMPOSER_AUTH_JSON: ${{ secrets.COMPOSER_AUTH_JSON }}
1818
with:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
#### dev-master
44

5+
#### Updated
6+
* Updated dependencies
7+
* Minimum PHP version increased from 7.1 to 8.0
8+
59
#### 3.3.0
610
* Make `$cache_hits` public, so tools like Query Monitor can read it
711
* Raise dependency versions to be compatible with PHP 8

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
"issues": "https://github.com/inpsyde/WP-Stash/issues"
2626
},
2727
"require": {
28-
"php": ">=7.1",
29-
"tedivm/stash": "^0.17.1",
30-
"psr/log": "~1.0"
28+
"php": ">=8.0",
29+
"tedivm/stash": "^1.2.2",
30+
"psr/log": "^3.0"
3131
},
3232
"require-dev": {
3333
"phpunit/phpunit": "^9.5",

src/Debug/ActionLogger.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
use Psr\Log\LoggerInterface;
88
use Psr\Log\LoggerTrait;
9+
use Stringable;
910

1011
class ActionLogger implements LoggerInterface
1112
{
1213
use LoggerTrait;
1314

1415
public const ACTION = 'wp-stash';
1516

16-
private $additionalInfo;
17+
private array $additionalInfo;
1718

1819
public function __construct(array $additionalInfo = [])
1920
{
@@ -23,10 +24,9 @@ public function __construct(array $additionalInfo = [])
2324
/**
2425
* phpcs:disable Inpsyde.CodeQuality.ArgumentTypeDeclaration.NoArgumentType
2526
* @param mixed $level
26-
* @param string $message
27-
* @param array $context
27+
* @param mixed[] $context
2828
*/
29-
public function log($level, $message, array $context = [])
29+
public function log($level, string|Stringable $message, array $context = []): void
3030
{
3131
do_action(self::ACTION . strtolower($level), $message, $context + $this->additionalInfo);
3232
}

0 commit comments

Comments
 (0)