Uh oh!
There was an error while loading. Please reload this page.
getSegment() fixed with conditions changed - #3212
Conversation
lonnieezell
commented
Jul 4, 2020
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:
|
michalsn
commented
Jul 4, 2020
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? |
michalsn
commented
Jul 4, 2020
@ivantcholakov No, CI4 has quite different rules - at least by default. |
paulbalandan
commented
Aug 29, 2020
@michalsn are we still keeping this? or are we deferring this for a BC breaking version jump? If no, perhaps we can close this? |
michalsn
commented
Aug 29, 2020
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. |
kenjis
commented
Feb 14, 2023
See #7249 |
Fixes#2962
Checklist: