Skip to content

Commit

Permalink
Merge pull request #58 from Aeliot-Tm/fix-tech-debt
Browse files Browse the repository at this point in the history
Fix tech debt
  • Loading branch information
Aeliot-Tm authored Dec 3, 2024
2 parents 30f3333 + ed3b3e7 commit 6f71254
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PHP Composer
name: Automated Testing

on:
push:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
steps:
- uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.0'
php-version: 7.4

- uses: actions/checkout@v3

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@
"require-dev": {
"aeliot-tm/phpunit-codecoverage-baseline": "^2.0",
"dg/bypass-finals": "^1.1",
"friendsofphp/php-cs-fixer": "^3.8",
"friendsofphp/php-cs-fixer": "^2.19.3|^3.8",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.8",
"phpstan/phpstan-phpunit": "^1.3",
"phpstan/phpstan-symfony": "^1.2",
"phpunit/phpunit": "^9.5",
"symfony/dotenv": "^3.4|^4.0|5.0|^6.0",
Expand Down
3 changes: 3 additions & 0 deletions src/Service/Translator/TranslatorV6P0.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ public function getCatalogue(string $locale = null): MessageCatalogueInterface
return $this->getCatalogueInner($locale);
}

/**
* @return MessageCatalogueInterface[]
*/
public function getCatalogues(): array
{
return $this->translator->getCatalogues();
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Service/Yaml/KeysParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ final class KeysParserTest extends TestCase
/**
* @dataProvider getDataForTestGetOmittedKeys
*
* @param string[] $expected
* @param array<string,array<string>> $expected
* @param array<string,array<string>> $localesKeys
*/
public function testGetOmittedKeys(array $expected, array $localesKeys): void
Expand Down

0 comments on commit 6f71254

Please sign in to comment.