Add return types
This commit is contained in:
parent
f2785bca03
commit
05311ac7b6
21 changed files with 84 additions and 78 deletions
|
@ -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.');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue