Skip to content

Commit 30800b1

Browse files
authored
Add PHP 8.3 support, drop PHP < 8.2 (#567)
1 parent 859c060 commit 30800b1

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
matrix:
1818
php-version:
19-
- "8.1"
19+
- "8.2"
2020

2121
steps:
2222
- uses: "actions/checkout@v4"
@@ -39,11 +39,11 @@ jobs:
3939
strategy:
4040
matrix:
4141
php-version:
42-
- "8.2"
42+
- "8.3"
4343
code-coverage:
4444
- "none"
4545
include:
46-
- php-version: "8.1"
46+
- php-version: "8.2"
4747
code-coverage: "pcov"
4848

4949
env:
@@ -89,7 +89,7 @@ jobs:
8989
strategy:
9090
matrix:
9191
php-version:
92-
- "8.1"
92+
- "8.2"
9393

9494
steps:
9595
- uses: "actions/checkout@v4"
@@ -108,7 +108,7 @@ jobs:
108108
strategy:
109109
matrix:
110110
php-version:
111-
- "8.1"
111+
- "8.2"
112112

113113
steps:
114114
- uses: "actions/checkout@v4"

.php-cs-fixer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'binary_operator_spaces' => ['default' => 'align_single_space'],
1818
'blank_line_before_statement' => true,
1919
'class_definition' => ['single_item_single_line' => true],
20-
'compact_nullable_typehint' => true,
20+
'compact_nullable_type_declaration' => true,
2121
'concat_space' => ['spacing' => 'one'],
2222
'echo_tag_syntax' => ['format' => 'long'],
2323
'error_suppression' => false,
@@ -39,7 +39,7 @@
3939
'no_null_property_initialization' => true,
4040
'no_php4_constructor' => true,
4141
'no_superfluous_elseif' => true,
42-
'no_unneeded_curly_braces' => true,
42+
'no_unneeded_braces' => true,
4343
'no_unneeded_final_method' => true,
4444
'no_unreachable_default_argument_value' => true,
4545
'no_useless_else' => true,

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PHP_DOCKER_VERSION := thecodingmachine/php:8.1-v4-cli
1+
PHP_DOCKER_VERSION := thecodingmachine/php:8.2-v4-cli
22
PHP_BIN := docker run -it --rm \
33
--network=ddeboer_imap_network \
44
--env IMAP_SERVER_NAME=ddeboer_imap_server \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
A PHP IMAP library to read and process e-mails over IMAP protocol, built with robust Object-Oriented architecture.
99

10-
This library requires PHP >= 8.1 with [IMAP](https://www.php.net/manual/en/book.imap.php),
10+
This library requires PHP >= 8.2 with [IMAP](https://www.php.net/manual/en/book.imap.php),
1111
[iconv](https://www.php.net/manual/en/book.iconv.php) and
1212
[Multibyte String](https://www.php.net/manual/en/book.mbstring.php) extensions installed.
1313

composer.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
}
2323
],
2424
"require": {
25-
"php": "~8.1.0 || ~8.2.0",
25+
"php": "~8.2.0 || ~8.3.0",
2626
"ext-dom": "*",
2727
"ext-iconv": "*",
2828
"ext-imap": "*",
2929
"ext-libxml": "*",
3030
"ext-mbstring": "*"
3131
},
3232
"require-dev": {
33-
"friendsofphp/php-cs-fixer": "^3.26.1",
34-
"laminas/laminas-mail": "^2.23.0",
35-
"phpstan/phpstan": "^1.10.33",
36-
"phpstan/phpstan-phpunit": "^1.3.14",
37-
"phpstan/phpstan-strict-rules": "^1.5.1",
38-
"phpunit/phpunit": "^10.3.3"
33+
"friendsofphp/php-cs-fixer": "^3.38.2",
34+
"laminas/laminas-mail": "^2.25.1",
35+
"phpstan/phpstan": "^1.10.43",
36+
"phpstan/phpstan-phpunit": "^1.3.15",
37+
"phpstan/phpstan-strict-rules": "^1.5.2",
38+
"phpunit/phpunit": "^10.4.2"
3939
},
4040
"autoload": {
4141
"psr-4": {

0 commit comments

Comments
 (0)