Skip to content

Commit d6948f8

Browse files
committed
Add support for most recent PHP version
1 parent 308acfc commit d6948f8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
- "7.4"
2020
- "8.0"
2121
- "8.1"
22+
- "8.2"
23+
- "8.3"
24+
- "8.4"
2225

2326
steps:
2427
- uses: actions/checkout@v2
@@ -102,4 +105,4 @@ jobs:
102105
run: composer check-style
103106

104107
- name: Run static analyse
105-
run: composer psalm
108+
run: composer psalm

src/AbstractDatabase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ abstract class AbstractDatabase implements \Iterator, \Countable
5050
* @throws \RuntimeException when base directory not specified and directory can not be located automatically
5151
*/
5252
public function __construct(
53-
string $baseDirectory = null,
54-
TranslationDriverInterface $translationDriver = null
53+
?string $baseDirectory = null,
54+
?TranslationDriverInterface $translationDriver = null
5555
) {
5656
if (empty($baseDirectory)) {
5757
// Require external database in "sokil/php-isocodes-db-*" packages

src/IsoCodesFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ class IsoCodesFactory
6161
private $translationDriver;
6262

6363
public function __construct(
64-
string $baseDirectory = null,
65-
TranslationDriverInterface $translationDriver = null
64+
?string $baseDirectory = null,
65+
?TranslationDriverInterface $translationDriver = null
6666
) {
6767
$this->baseDirectory = $baseDirectory;
6868
$this->translationDriver = $translationDriver ?? new GettextExtensionDriver();

0 commit comments

Comments
 (0)