Add return types

This commit is contained in:
Pierre Rudloff 2020-12-17 22:43:05 +01:00
parent f2785bca03
commit 05311ac7b6
21 changed files with 84 additions and 78 deletions

View file

@ -15,10 +15,10 @@ class LocaleManagerFactory
/**
* @param Container $container
* @return LocaleManager|null
* @return LocaleManager
* @throws DependencyException
*/
public static function create(Container $container)
public static function create(Container $container): LocaleManager
{
if (!class_exists('Locale')) {
throw new DependencyException('You need to install the intl extension for PHP.');