fix: migrate $_REQUEST to ServerRequest in SearchController#20122
Conversation
9ae6539 to
5abf610
Compare
|
It seems to me like it could be safely replaced in one go across the whole repo. |
|
That makes sense — I can put together a single PR that covers all remaining $_REQUEST usages if that's preferred. Would you like me to close this one and the DesignerController PR (#20125) in favor of a combined replacement? |
I was only referring to |
|
Got it — scoped to |
|
Expanded scope: migrated all remaining Changed files:
All 5183 unit tests pass locally. |
f4609e8 to
1391502
Compare
0e18315 to
c7452ae
Compare
MauricioFauth
left a comment
There was a problem hiding this comment.
You did a bad git rebase. Please revert the unrelated changes.
c7452ae to
6e91cfd
Compare
|
Rebased cleanly onto master — the branch now has a single commit with only the Per @kamil-tekiela's suggestion, this covers all remaining |
6e91cfd to
7b0fa89
Compare
|
Rebased clean on master — single commit, no unrelated changes. The Weblate commits from the earlier push are gone. The 7 files changed, tests pass (93 tests, 424 assertions). |
7b0fa89 to
f61c318
Compare
src/Server/Privileges.php
Outdated
| * Get HTML snippet for display user overview page | ||
| */ | ||
| public function getHtmlForUserOverview(UserPrivileges $userPrivileges, string|null $initial): string | ||
| public function getHtmlForUserOverview(UserPrivileges $userPrivileges, string|null $initial, ServerRequest $request): string |
There was a problem hiding this comment.
Line exceeds 120 characters.
https://github.com/phpmyadmin/phpmyadmin/actions/runs/22334432338/job/64628713458?pr=20122#step:8:38
There was a problem hiding this comment.
Fixed in the latest push.
f61c318 to
564d1b9
Compare
|
Rebased onto master and fixed the 120-char line in |
9480562 to
3ba8704
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20122 +/- ##
============================================
- Coverage 63.44% 63.24% -0.21%
+ Complexity 16090 16088 -2
============================================
Files 668 675 +7
Lines 60072 60071 -1
============================================
- Hits 38114 37993 -121
- Misses 21958 22078 +120
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
71c6297 to
3c9f0fe
Compare
Replace `empty($_REQUEST['ajax_page_request'])` with
`! $request->has('ajax_page_request')` to use the injected
ServerRequest consistently.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
3c9f0fe to
12ff061
Compare
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
Summary
$_REQUEST['ajax_page_request']superglobal access with$request->getParam('ajax_page_request')inSearchController.php$_REQUEST→ServerRequestmigration tracked in Request superglobals in controllers should be replaced withServerRequestobject #17769Test plan
phpstanandphpcsto confirm no regressionsRefs #16276, #17769