New feature: Translation message placeholder support #526
continuous-integration.yml
on: pull_request
ci
/
Generate job matrix
7s
Matrix: ci / QA Checks
Annotations
10 errors
ArgumentTypeCoercion:
src/Translator/PlaceholderPluginManagerFactory.php#L31
src/Translator/PlaceholderPluginManagerFactory.php:31:67: ArgumentTypeCoercion: Argument 2 of Laminas\I18n\Translator\PlaceholderPluginManager::__construct expects array{abstract_factories?: array<array-key, Laminas\ServiceManager\Factory\AbstractFactoryInterface|class-string<Laminas\ServiceManager\Factory\AbstractFactoryInterface>>, aliases?: array<string, string>, delegators?: array<string, array<array-key, Laminas\ServiceManager\Factory\DelegatorFactoryInterface|callable(Psr\Container\ContainerInterface, string, callable():object, array<array-key, mixed>|null):object|class-string<Laminas\ServiceManager\Factory\DelegatorFactoryInterface>>>, factories?: array<string, Laminas\ServiceManager\Factory\FactoryInterface|callable(Psr\Container\ContainerInterface, null|string, array<array-key, mixed>|null):object|class-string<Laminas\ServiceManager\Factory\FactoryInterface>>, initializers?: array<array-key, Laminas\ServiceManager\Initializer\InitializerInterface|callable(Psr\Container\ContainerInterface, object):void|class-string<Laminas\ServiceManager\Initializer\InitializerInterface>>, invokables?: array<string, string>, lazy_services?: array{class_map?: array<string, class-string>, proxies_namespace?: non-empty-string, proxies_target_dir?: non-empty-string, write_proxy_files?: bool}, services?: array<string, array<array-key, mixed>|object>, shared?: array<string, bool>, shared_by_default?: bool, ...<array-key, mixed>}, but parent type array<array-key, mixed> provided (see https://psalm.dev/193)
|
DeprecatedClass:
src/Translator/PlaceholderPluginManagerFactory.php#L52
src/Translator/PlaceholderPluginManagerFactory.php:52:10: DeprecatedClass: Laminas\ServiceManager\Config is marked deprecated (see https://psalm.dev/098)
|
MixedArgument:
src/Translator/PlaceholderPluginManagerFactory.php#L52
src/Translator/PlaceholderPluginManagerFactory.php:52:21: MixedArgument: Argument 1 of Laminas\ServiceManager\Config::__construct cannot be array<array-key, mixed>|mixed, expecting array{abstract_factories?: array<array-key, Laminas\ServiceManager\Factory\AbstractFactoryInterface|class-string<Laminas\ServiceManager\Factory\AbstractFactoryInterface>>, aliases?: array<string, string>, delegators?: array<string, array<array-key, Laminas\ServiceManager\Factory\DelegatorFactoryInterface|callable(Psr\Container\ContainerInterface, string, callable():object, array<array-key, mixed>|null):object|class-string<Laminas\ServiceManager\Factory\DelegatorFactoryInterface>>>, factories?: array<string, Laminas\ServiceManager\Factory\FactoryInterface|callable(Psr\Container\ContainerInterface, null|string, array<array-key, mixed>|null):object|class-string<Laminas\ServiceManager\Factory\FactoryInterface>>, initializers?: array<array-key, Laminas\ServiceManager\Initializer\InitializerInterface|callable(Psr\Container\ContainerInterface, object):void|class-string<Laminas\ServiceManager\Initializer\InitializerInterface>>, invokables?: array<string, string>, lazy_services?: array{class_map?: array<string, class-string>, proxies_namespace?: string, proxies_target_dir?: string, write_proxy_files?: bool}, services?: array<string, array<array-key, mixed>|object>, shared?: array<string, bool>, ...<array-key, mixed>} (see https://psalm.dev/030)
|
PossiblyInvalidCast:
src/Translator/Translator.php#L354
src/Translator/Translator.php:354:71: PossiblyInvalidCast: array<array-key, string> cannot be cast to string (see https://psalm.dev/190)
|
PossiblyInvalidArgument:
src/Translator/Translator.php#L354
src/Translator/Translator.php:354:71: PossiblyInvalidArgument: Argument 3 of Laminas\I18n\Translator\Translator::getTranslatedMessage expects string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
|
PossiblyInvalidCast:
src/Translator/Translator.php#L389
src/Translator/Translator.php:389:72: PossiblyInvalidCast: array<array-key, string> cannot be cast to string (see https://psalm.dev/190)
|
PossiblyInvalidArgument:
src/Translator/Translator.php#L389
src/Translator/Translator.php:389:72: PossiblyInvalidArgument: Argument 3 of Laminas\I18n\Translator\Translator::getTranslatedMessage expects string, but possibly different type array<array-key, string>|string provided (see https://psalm.dev/092)
|
MixedInferredReturnType:
src/Translator/Translator.php#L475
src/Translator/Translator.php:475:18: MixedInferredReturnType: Could not verify return type 'array<array-key, mixed>|null|string' for Laminas\I18n\Translator\Translator::getTranslatedMessage (see https://psalm.dev/047)
|
MixedReturnStatement:
src/Translator/Translator.php#L508
src/Translator/Translator.php:508:20: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
UnusedBaselineEntry:
src/Translator/LoaderPluginManager.php#L1
src/Translator/LoaderPluginManager.php:0:0: UnusedBaselineEntry: Baseline for issue "ParamNameMismatch" has 2 extra entries. (see https://psalm.dev/316)
|