Repository navigation
Allow khaled.alshamaa/ar-php 7.x - #59
Merged
Merged
Conversation
ar-php 7.0.0 only adds features (lazy-loaded data files, arDialect(), Urdu glyphs); every method this package calls keeps its signature. The test suite passes on both 6.3 and 7.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
thank you @alkoumi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
composer.jsonpinskhaled.alshamaa/ar-phpto^6.3, so apps using this package cannot install ar-php 7. ar-php 7.0.0 has been out since March 2025, and upcoming PHP 8.5 fixes land in the 7.x line, for example khaled-alshamaa/ar-php#95, which stopsutf8Glyphs()from raisingord()deprecations on PHP 8.5.Change
"khaled.alshamaa/ar-php": "^6.3"→"^6.3|^7.0". Existing 6.3 installs keep working.Compatibility
ar-php 7.0.0's changelog lists only additions: lazy-loaded data files,
arDialect(), asimilar_text()equivalent, Urdu and Presentation Forms-A glyphs. Every method this package calls keeps its name and parameters:utf8Glyphs,int2str,money2str,str2int,int2indic,en2ar,ar2en,strtotime,standard,arSummary,arSentiment,arPlural,isFemale,isArabicand the number-format setters.Tested
vendor/bin/phpunitpasses (13 tests) on PHP 8.4 and 8.5 with ar-php 7.0.0, and with the lowest allowed version (6.3.0,--prefer-lowest). The 13 PHPUnit deprecation notices also appear on unmodifiedmain, so they are unrelated to this change.🤖 Generated with Claude Code