Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cevro committed Oct 27, 2024
1 parent 9f0a2a9 commit d1c2035
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/php-psr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.4' , '8.0' , '8.1' ]
php: [ '8.1' ]
steps:
- uses: actions/checkout@v2
name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '7.4', '8.0', '8.1']
php: ['8.1']
steps:
- uses: actions/checkout@v2
name: Checkout
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "library",
"license": "GPL-3.0-or-later",
"require": {
"php": "7.4.* | 8.0.* | 8.1.* ",
"php": "8.1.* ",
"nette/utils": "^v3.2.0",
"nette/di": "^3.0.0",
"nette/application": "^3.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Localization/GettextTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getSupportedLanguages(): array
* @phpstan-param array<TLang,TValue>|LangMap<TLang,TValue> $map
* @phpstan-return TValue
*/
public function getVariant($map)
public function getVariant($map): mixed
{
if ($map instanceof LangMap) {
return $map->get($this->lang);
Expand Down
4 changes: 2 additions & 2 deletions src/Localization/LangMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct(array $variants)
* @phpstan-param TLang $lang
* @phpstan-return TValue
*/
public function __get(string $lang)
public function __get(string $lang): mixed
{
return $this->get($lang);
}
Expand All @@ -36,7 +36,7 @@ public function __get(string $lang)
* @phpstan-param TLang $lang
* @phpstan-return TValue
*/
public function get(string $lang)
public function get(string $lang): mixed
{
return $this->variants[$lang] ?? null;
}
Expand Down

0 comments on commit d1c2035

Please sign in to comment.