-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use a string wrapper to support intl, mbstring and iconv extension #131
base: master
Are you sure you want to change the base?
Conversation
@sandrokeil I am unsure, it must be a new major version that is for sure, but i don't know if intl is as widespread as mbstring. |
lib/Assert/Assertion.php
Outdated
@@ -76,7 +76,6 @@ | |||
* @method static void nullOrChoicesNotEmpty($values, $choices, $message = null, $propertyPath = null) | |||
* @method static void nullOrMethodExists($value, $object, $message = null, $propertyPath = null) | |||
* @method static void nullOrIsObject($value, $message = null, $propertyPath = null) | |||
* @method static void nullOrDate($value, $format, $message = null, $propertyPath = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this removal looks suspicious to me
@beberlei We can use a simple String Wrapper like Zend and we have a WinWin solution and can bring a new minor release. Maybe even simpler, check for the extensions on the appropriate functions and call the correct method. What do you think? The order is intl, mbstring and iconv. I will update the PR if you accept this. |
ping @beberlei +1 for string wrapper and full backward compatibility? We will support intl, mbstring, iconv and native. No method signature will be changed, but the encoding is only used by mbstring and iconv. |
👍 |
@@ -132,7 +132,6 @@ | |||
* @method static void allChoicesNotEmpty($values, $choices, $message = null, $propertyPath = null) | |||
* @method static void allMethodExists($value, $object, $message = null, $propertyPath = null) | |||
* @method static void allIsObject($value, $message = null, $propertyPath = null) | |||
* @method static void allDate($value, $format, $message = null, $propertyPath = null) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another removal?
Are you using bin/generate_method_docs.php
to update the docblocks?
any update? |
Since the PHP intl extension is available, there is no need to use mbstring anymore. Websites uses UTF-8 and PHP intl extension is more comfortable than mbstring. I've replaced all
mb_*
functions with thegrapheme_*
functions.@beberlei What do you think about a new major version which uses the PHP intl extension?