Skip to content

Commit 96ad7a5

Browse files
authored
Merge pull request #43 from ingenerator/support_php_82
Test and support PHP8.2
2 parents 530d881 + 01e0600 commit 96ad7a5

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ jobs:
1919
php_version:
2020
- '8.0'
2121
- '8.1'
22+
- '8.2'
2223
dependencies:
2324
- 'default'
2425
include:
2526
- php_version: '8.0'
2627
dependencies: 'lowest'
2728
- php_version: '8.1'
2829
dependencies: 'lowest'
30+
- php_version: '8.2'
31+
dependencies: 'lowest'
2932
steps:
3033
- name: Setup PHP
3134
uses: shivammathur/setup-php@v2

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
### Unreleased
22

3+
### v1.17.0 (2022-10-14)
4+
5+
* Support PHP 8.2
6+
37
### v1.16.0 (2022-10-10)
48

59
* Support PHP 8.1

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
],
1717
"require": {
1818
"ext-json": "*",
19-
"ext-mbstring": "~8.0.0 || ~8.1.0",
20-
"ext-pdo": "~8.0.0 || ~8.1.0",
21-
"ext-sodium": "~8.0.0 || ~8.1.0",
22-
"php": "~8.0.0 || ~8.1.0",
19+
"ext-mbstring": "~8.0.0 || ~8.1.0 || ~8.2.0",
20+
"ext-pdo": "~8.0.0 || ~8.1.0 || ~8.2.0",
21+
"ext-sodium": "~8.0.0 || ~8.1.0 || ~8.2.0",
22+
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
2323
"psr/log": "^1.1"
2424
},
2525
"require-dev": {
2626
"johnkary/phpunit-speedtrap": "^3.3",
27-
"mikey179/vfsstream": "^1.6.10",
27+
"mikey179/vfsstream": "^1.6.11",
2828
"phpunit/phpunit": "^9.5.5"
2929
},
3030
"support": {

phpunit.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
convertErrorsToExceptions="true"
77
convertNoticesToExceptions="true"
88
convertWarningsToExceptions="true"
9+
convertDeprecationsToExceptions="true"
910
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
1011
<coverage>
1112
<include>

src/DateTime/InvalidUserDateTime.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public function __construct($input_string)
3030
$this->input_string = $input_string;
3131
}
3232

33-
public static function createFromFormat($format, $time, $timezone = NULL): \DateTimeImmutable
33+
public static function createFromFormat($format, $time, $timezone = NULL): static
3434
{
3535
throw new \BadMethodCallException('Invalid call to '.__METHOD__);
3636
}
3737

38-
public static function createFromMutable($dateTime): \DateTimeImmutable
38+
public static function createFromMutable(\DateTime $dateTime): static
3939
{
4040
throw new \BadMethodCallException('Invalid call to '.__METHOD__);
4141
}

0 commit comments

Comments
 (0)