Skip to content

Commit

Permalink
Merge pull request #80 from henriquemoody/php-versions
Browse files Browse the repository at this point in the history
Add support to the most recent PHP versions
  • Loading branch information
sokil authored Dec 11, 2024
2 parents 308acfc + d6948f8 commit 5654656
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
- "8.4"

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -102,4 +105,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 5654656

Please sign in to comment.