{"id":19176621,"url":"https://github.com/sulu/symfony-intl-fix","last_synced_at":"2025-05-07T19:24:16.401Z","repository":{"id":57010400,"uuid":"183586867","full_name":"sulu/symfony-intl-fix","owner":"sulu","description":"Provides the symfony/intl fix for new php version in symfony 2.8","archived":false,"fork":false,"pushed_at":"2019-04-26T12:29:20.000Z","size":6,"stargazers_count":20,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-20T01:33:12.743Z","etag":null,"topics":["fix","intl","legacy","symfony"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sulu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-26T08:11:23.000Z","updated_at":"2021-03-23T15:11:58.000Z","dependencies_parsed_at":"2022-08-21T15:10:11.115Z","dependency_job_id":null,"html_url":"https://github.com/sulu/symfony-intl-fix","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsymfony-intl-fix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsymfony-intl-fix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsymfony-intl-fix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sulu%2Fsymfony-intl-fix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sulu","download_url":"https://codeload.github.com/sulu/symfony-intl-fix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252942176,"owners_count":21829023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fix","intl","legacy","symfony"],"created_at":"2024-11-09T10:29:17.808Z","updated_at":"2025-05-07T19:24:16.352Z","avatar_url":"https://github.com/sulu.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fix symfony/intl for newer PHP Versions\n\n```bash\ncomposer require sulu/symfony-intl-fix\n```\n\nTo avoid problems you should also exclude the default Locale class from the classmap in your `composer.json`:\n\n```json\n{\n    \"autoload\": {\n        \"exclude-from-classmap\": [\n             \"vendor/symfony/intl/Locale.php\",\n             \"vendor/symfony/symfony/src/Symfony/Component/Intl/Locale.php\"\n        ]\n    }\n}\n```\n\n**Affected PHP Versions:**\n\n - `^7.3.4`\n - `^7.2.17`\n - `^7.1.28`\n\nIf you use one of the above PHP Version and an older Symfony Intl version than\n`^3.4.24` or `^4.2.7` symfony/intl will end up in an infinite loop.\n\nThis package will overwrite the Symfony [Locale][locale] to avoid this infinite \nloop. Projects using Symfony 3 or 4 should just update there symfony package. \nThis fix is mainly provided for Symfony 2 projects.\n\n**What was changed to fix the issue?**\n\nThe change in `Locale.php` is really simple:\n\n```diff\n-            return locale_compose($localeSubTags);\n+            $fallback = locale_compose($localeSubTags);\n+\n+            return false !== $fallback ? $fallback : null;\n```\n\nSee [original commit][oc].\n\n[locale]: https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Intl/Locale.php\n[oc]: https://github.com/symfony/intl/commit/d2ac83703951bc3206e9ea3f6114b355de14e3ce#diff-272fb631cccddf1d11988bec3fb7aa15\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulu%2Fsymfony-intl-fix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsulu%2Fsymfony-intl-fix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsulu%2Fsymfony-intl-fix/lists"}