-
-
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
Fixed Phalcon\Config::merge being inconsistent #14186
Fixed Phalcon\Config::merge being inconsistent #14186
Conversation
Removed __set_state method `Phalcon/Config` now extends `ArrayObject` Merging is done properly Assignment works as expected _all_ the time
pathDelimiter is no longer static
How do I keep missing these - CTRL + F >> Static
…ameronHall/cphalcon into bugfix/merge-typecasted-keys * 'bugfix/merge-typecasted-keys' of github.com:CameronHall/cphalcon: Removed set state and fixed segfault
Codecov Report
@@ Coverage Diff @@
## 4.0.x #14186 +/- ##
==========================================
- Coverage 74.75% 74.73% -0.02%
==========================================
Files 455 454 -1
Lines 94463 94193 -270
==========================================
- Hits 70615 70396 -219
+ Misses 23848 23797 -51
Continue to review full report at Codecov.
|
This is solid. Will wait for @sergeyklay to give us any ideas on why the windows build fails. If something is wrong and we cannot fix it immediately we can always extend the |
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.
Looks good to me
Thank you @CameronHall |
Hello!
In raising this pull request, I confirm the following:
Small description of change:
Phalcon/Config
now extendsPhalcon\Collection\Collection
It is worth noting that in #13768 it talks about correctly interpreting integers defined as strings. This is simply not possible given that PHP will cast strings that look like integers to integers.
We also need to maintain our own merge functionality because the native PHP
array_merge_recusive
will merge values together into an array if they have the same string keys.array_replace_recursive
created its own issues whereby it would replace keys with the same numeric index instead of appending to array itself.Thanks