Skip to content

Commit 739103d

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

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ jobs:
102102
run: composer check-style
103103

104104
- name: Run static analyse
105-
run: composer psalm
105+
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)