承接 sulu/symfony-intl-fix 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

sulu/symfony-intl-fix

最新稳定版本:1.0.0

Composer 安装命令:

composer require sulu/symfony-intl-fix

包简介

Provides the symfony/intl fix for new php version also for symfony 2.8

README 文档

README

composer require sulu/symfony-intl-fix

To avoid problems you should also exclude the default Locale class from the classmap in your composer.json:

{
    "autoload": {
        "exclude-from-classmap": [
             "vendor/symfony/intl/Locale.php",
             "vendor/symfony/symfony/src/Symfony/Component/Intl/Locale.php"
        ]
    }
}

Affected PHP Versions:

  • ^7.3.4
  • ^7.2.17
  • ^7.1.28

If you use one of the above PHP Version and an older Symfony Intl version than ^3.4.24 or ^4.2.7 symfony/intl will end up in an infinite loop.

This package will overwrite the Symfony Locale to avoid this infinite loop. Projects using Symfony 3 or 4 should just update there symfony package. This fix is mainly provided for Symfony 2 projects.

What was changed to fix the issue?

The change in Locale.php is really simple:

-            return locale_compose($localeSubTags);
+            $fallback = locale_compose($localeSubTags);
+
+            return false !== $fallback ? $fallback : null;

See original commit.

统计信息

  • 总下载量: 268.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 6
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-26