Skip to content

Commit

Permalink
Update symfony-storage requirement (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Dolbeau authored and Nyholm committed Jan 6, 2020
1 parent 52e8c2a commit 4ccfc43
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
],
"require": {
"php": "^7.2",
"php-translation/common": "^2.0",
"php-translation/symfony-storage": "^2.0",
"php-translation/symfony-storage": "^2.1",
"symfony/translation": "^3.4 || ^4.3 || ^5.0",
"symfony/yaml": "^3.4 || ^4.3 || ^5.0",
"friendsofapi/localise.biz": "^1.0"
Expand Down
20 changes: 5 additions & 15 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition\\:\\:children\\(\\)\\.$#"
count: 1
path: src/Bridge/Symfony/DependencyInjection/Configuration.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition\\:\\:useAttributeAsKey\\(\\)\\.$#"
count: 1
path: src/Bridge/Symfony/DependencyInjection/Configuration.php

-
message: "#^Method Translation\\\\PlatformAdapter\\\\Loco\\\\Bridge\\\\Symfony\\\\DependencyInjection\\\\TranslationAdapterLocoExtension\\:\\:load\\(\\) has no return typehint specified\\.$#"
count: 1
Expand All @@ -25,11 +15,6 @@ parameters:
count: 2
path: src/Loco.php

-
message: "#^Method Translation\\\\PlatformAdapter\\\\Loco\\\\Loco\\:\\:get\\(\\) should return Translation\\\\Common\\\\Model\\\\MessageInterface but returns null\\.$#"
count: 1
path: src/Loco.php

-
message: "#^Parameter \\#1 \\$projectKey of method FAPI\\\\Localise\\\\Api\\\\Asset\\:\\:create\\(\\) expects string, string\\|null given\\.$#"
count: 1
Expand Down Expand Up @@ -74,3 +59,8 @@ parameters:
message: "#^Parameter \\#1 \\$projectKey of method FAPI\\\\Localise\\\\Api\\\\Import\\:\\:import\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Loco.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\TreeBuilder\\:\\:root\\(\\)\\.$#"
count: 2
path: src/Bridge/Symfony/DependencyInjection/Configuration.php
2 changes: 1 addition & 1 deletion src/Loco.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function __construct(LocoClient $client, array $projects)
/**
* {@inheritdoc}
*/
public function get(string $locale, string $domain, string $key): MessageInterface
public function get(string $locale, string $domain, string $key): ?MessageInterface
{
$project = $this->getProject($domain);

Expand Down

0 comments on commit 4ccfc43

Please sign in to comment.