getSegment() fixed with conditions changed#3212
getSegment() fixed with conditions changed#3212rajat315315 wants to merge 2 commits intocodeigniter4:developfrom
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: