1 | <?php |
||
2 | |||
3 | /* |
||
4 | * This file is part of the PHP Translation package. |
||
5 | * |
||
6 | * (c) PHP Translation team <[email protected]> |
||
7 | * |
||
8 | * For the full copyright and license information, please view the LICENSE |
||
9 | * file that was distributed with this source code. |
||
10 | */ |
||
11 | |||
12 | namespace Translation\Bundle\Translator; |
||
13 | |||
14 | use Symfony\Component\Translation\TranslatorBagInterface; |
||
15 | use Symfony\Component\Translation\TranslatorInterface as LegacyTranslatorInterface; |
||
0 ignored issues
–
show
|
|||
16 | use Symfony\Contracts\Translation\LocaleAwareInterface; |
||
17 | use Symfony\Contracts\Translation\TranslatorInterface as NewTranslatorInterface; |
||
18 | |||
19 | /* |
||
20 | * This interface is here to allow us to support both sf 3.x with |
||
21 | * LegacyTranslatorInterface & sf 5.x where this interface have been replaced |
||
22 | * by NewLocalAwareInterface. |
||
23 | * |
||
24 | * When sf 3.4 won't be supported anymore, this interface will become useless. |
||
25 | */ |
||
26 | |||
27 | 1 | if (\interface_exists(NewTranslatorInterface::class)) { |
|
28 | interface TranslatorInterface extends NewTranslatorInterface, LocaleAwareInterface, TranslatorBagInterface |
||
29 | { |
||
30 | } |
||
31 | } else { |
||
32 | interface TranslatorInterface extends LegacyTranslatorInterface, TranslatorBagInterface |
||
33 | { |
||
34 | } |
||
35 | } |
||
36 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths