New feature: Translation message placeholder support #536
Annotations
10 errors
Psalm [8.1, locked]:
src/Translator/FormatterPluginManagerFactory.php#L30
src/Translator/FormatterPluginManagerFactory.php:30:65: ArgumentTypeCoercion: Argument 2 of Laminas\I18n\Translator\FormatterPluginManager::__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)
|
Psalm [8.1, locked]:
src/Translator/FormatterPluginManagerFactory.php#L51
src/Translator/FormatterPluginManagerFactory.php:51: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)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L27
src/Translator/TranslatorFormatterDecorator.php:27:9: MixedAssignment: Unable to determine the type that $locale is being assigned to (see https://psalm.dev/032)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L27
src/Translator/TranslatorFormatterDecorator.php:27:40: UndefinedInterfaceMethod: Method Laminas\I18n\Translator\TranslatorInterface::getLocale does not exist (see https://psalm.dev/181)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L29
src/Translator/TranslatorFormatterDecorator.php:29:89: MixedArgument: Argument 3 of Laminas\I18n\Translator\TranslatorInterface::translate cannot be mixed, expecting null|string (see https://psalm.dev/030)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L29
src/Translator/TranslatorFormatterDecorator.php:29:108: MixedArgument: Argument 3 of Laminas\I18n\Translator\TranslatorFormatterDecorator::formatMessage cannot be mixed, expecting string (see https://psalm.dev/030)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L48
src/Translator/TranslatorFormatterDecorator.php:48:9: MixedAssignment: Unable to determine the type that $locale is being assigned to (see https://psalm.dev/032)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L48
src/Translator/TranslatorFormatterDecorator.php:48:40: UndefinedInterfaceMethod: Method Laminas\I18n\Translator\TranslatorInterface::getLocale does not exist (see https://psalm.dev/181)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L51
src/Translator/TranslatorFormatterDecorator.php:51:78: MixedArgument: Argument 5 of Laminas\I18n\Translator\TranslatorFormatterDecorator::translatePlural cannot be mixed, expecting null|string (see https://psalm.dev/030)
|
Psalm [8.1, locked]:
src/Translator/TranslatorFormatterDecorator.php#L53
src/Translator/TranslatorFormatterDecorator.php:53:13: MixedArgument: Argument 3 of Laminas\I18n\Translator\TranslatorFormatterDecorator::formatMessage cannot be mixed, expecting string (see https://psalm.dev/030)
|
Loading