-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Camelize delimiter in 2.0.11 #11767
Comments
I think this issue mostly related to the Zephir project which uses the practice "pull all things in master". Phalcon always uses latest Zephir from master branch. It would be better if you opened this issue in the Zephir repository. Or your question should sounds like: "Do not use latest Zephir in Phalcon's minor versions" |
Hey, while I agree that this issue should also be directed (and resolved) at Zephir, phalcon 2.0.11 breaks several naming conventions in multiple of our projects. Under semver this shouldn't happen, and we now need to ensure that everything including dev environments is pinned to 2.0.10 instead of 2.0.x |
Phalcon never followed SemVer |
Ok, that underlines our realisation to ensure 2.0.10 is pinned. As for the issue itself, I do believe it's unintentionally breaking backwards compatibility since the related change describes a different scope and the docbloc still mentions both delimiters. Issue on zehpir: zephir-lang/zephir#1252 |
@mdular Well, I'll try to sort out with this |
Fixed in 2.0.x using Zephir 0.9.2 |
Hi @andresgutierrez @sergeyklay, I don't think the original behavior is restored. \Phalcon\Text::camelize('test-test') returns "TestTest" in phalcon 2.0.10. Can you check? Tested on CentOS release 6.7 (Final)
|
Will be fixed in |
I saw some other routing related issues. Had to revert back to
to this
but even though I deploy via docker ubuntu images, the above only works on production. On dev box I have to do:
My devbox host is OS X but everything else is the same. I have some other stuff I do based on Will await |
Fixed here #11804 |
Fixed in |
Before 2.0.11 camelize accepted underscore (_) and dash (-) as delimiters.
In 2.0.11 only underscore is used by default and a new optional argument was added in order to add custom delimiters.
IMO this change should not be part of a minor version.
If you are keeping this change have in mind that doc block is misleading since it says it converts "dash/underscored text..."
The text was updated successfully, but these errors were encountered: