Skip to content

Commit

Permalink
Add support for most recent PHP version
Browse files Browse the repository at this point in the history
  • Loading branch information
henriquemoody committed Dec 6, 2024
1 parent 308acfc commit 739103d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,4 @@ jobs:
run: composer check-style

- name: Run static analyse
run: composer psalm
run: composer psalm
4 changes: 2 additions & 2 deletions src/AbstractDatabase.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ abstract class AbstractDatabase implements \Iterator, \Countable
* @throws \RuntimeException when base directory not specified and directory can not be located automatically
*/
public function __construct(
string $baseDirectory = null,
TranslationDriverInterface $translationDriver = null
?string $baseDirectory = null,
?TranslationDriverInterface $translationDriver = null
) {
if (empty($baseDirectory)) {
// Require external database in "sokil/php-isocodes-db-*" packages
Expand Down
4 changes: 2 additions & 2 deletions src/IsoCodesFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ class IsoCodesFactory
private $translationDriver;

public function __construct(
string $baseDirectory = null,
TranslationDriverInterface $translationDriver = null
?string $baseDirectory = null,
?TranslationDriverInterface $translationDriver = null
) {
$this->baseDirectory = $baseDirectory;
$this->translationDriver = $translationDriver ?? new GettextExtensionDriver();
Expand Down

0 comments on commit 739103d

Please sign in to comment.