All Projects → sulu → symfony-intl-fix

sulu / symfony-intl-fix

Licence: other
Provides the symfony/intl fix for new php version in symfony 2.8

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to symfony-intl-fix

ansible-archlinux
Automated arch linux desktop environment
Stars: ✭ 56 (+180%)
Mutual labels:  legacy
react-infinity-menu
A react component that displays an unlimited deep menu
Stars: ✭ 59 (+195%)
Mutual labels:  legacy
Hackintosh-ASUS-A455LF-Notebook
EFI Folder for ASUS A455LF-WX039D Notebook Series with Clover/OpenCore Legacy or UEFI
Stars: ✭ 27 (+35%)
Mutual labels:  legacy
snmp notifier
A webhook to relay Prometheus alerts as SNMP traps, because sometimes, you have to deal with legacy
Stars: ✭ 33 (+65%)
Mutual labels:  legacy
legacy
Legacy CMake BASIS project for versions 3.2 and older. For newer versions, go to
Stars: ✭ 13 (-35%)
Mutual labels:  legacy
kryptonite
Enable AMD/NVIDIA eGFX for All Thunderbolt Macs with SIP, ART & FileVault support.
Stars: ✭ 94 (+370%)
Mutual labels:  legacy
fortran-legacy-tools
Three tools to deal with Fortran code: fixed to free source form converter, upper- to lowercase converter, formatter for variable declarations
Stars: ✭ 40 (+100%)
Mutual labels:  legacy
next-intl
Library to integrate react-intl with Next.js.
Stars: ✭ 41 (+105%)
Mutual labels:  intl
aim
Artificial Intelligence Modules, components to run in the Internet of Things framework, Dodedodo.com, http://dodedodo.com. These modules will run on your smartphone, on a raspberry pi, on a server, in a docker, and all native, in C++! The modules communicate through firewalls using XMPP. And on single machine they can use ZeroMQ, YARP, or Androi…
Stars: ✭ 13 (-35%)
Mutual labels:  legacy
get-css-data
A micro-library for collecting stylesheet data from link and style nodes
Stars: ✭ 29 (+45%)
Mutual labels:  legacy
nreco
Model-driven framework for ASP.NET business apps [LEGACY, NOT MAINTAINED]
Stars: ✭ 27 (+35%)
Mutual labels:  legacy
ngx http hmac secure link module
HMAC Secure Link module for NGINX.
Stars: ✭ 47 (+135%)
Mutual labels:  legacy
tmwa
DEPRECATED: The server running The Mana World Legacy. All new projects should use Hercules instead. See the "evol-hercules" repo.
Stars: ✭ 44 (+120%)
Mutual labels:  legacy
cashaddress
Python tool for convert bitcoin cash legacy addresses
Stars: ✭ 40 (+100%)
Mutual labels:  legacy
arbify flutter
Flutter package providing Arbify support.
Stars: ✭ 18 (-10%)
Mutual labels:  intl
dart sealed
Dart and Flutter sealed class generator and annotations, with match methods and other utilities. There is also super_enum compatible API.
Stars: ✭ 16 (-20%)
Mutual labels:  legacy
w4py
Webware for Python
Stars: ✭ 21 (+5%)
Mutual labels:  legacy
react-intlable
High order component for declarative Internationalization
Stars: ✭ 23 (+15%)
Mutual labels:  intl
gjf
A tool in Python to fix invalid GeoJSON objects and files
Stars: ✭ 94 (+370%)
Mutual labels:  fix
Ventoy
A new bootable USB solution.
Stars: ✭ 29,413 (+146965%)
Mutual labels:  legacy

Fix symfony/intl for newer PHP Versions

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].