-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
getSegment() fixed with conditions changed #3212
Conversation
Can you fix up the failing test please? https://travis-ci.org/github/codeigniter4/CodeIgniter4/jobs/704736451 |
Can somebody clarify the Unit test at: CodeIgniter4/tests/system/Pager/PagerTest.php Lines 428 to 432 in 8df97b9
Is it correct? I think L431 should be:
|
This would be a BC change. Surprisingly this is not covered by the URITest class. Let's say we have this address: In URI class we have a "rule" that restrains throwing exception until the segment isn't greater than Anyway, I think that #2962 is pretty much covered by introducing |
At the transition CI2 --> CI3 a convention was adopted. If a method does not "know" what to return, it returns NULL, not an empty string (edit: or FALSE sometimes). Is this valid for CI4? |
@ivantcholakov No, CI4 has quite different rules - at least by default. |
@michalsn are we still keeping this? or are we deferring this for a BC breaking version jump? If no, perhaps we can close this? |
Personally, I think people rely too much on the current implementation to change it in 4.1. We can revisit this at some point but I'll close it for now. |
See #7249 |
Fixes #2962
Checklist: