Fix Symfony 7.4 Request::get deprecations in ItemsController#1284
Fix Symfony 7.4 Request::get deprecations in ItemsController#1284prateekbhujel wants to merge 2 commits intoUniSharp:masterfrom
Conversation
|
I pushed a follow-up update to keep this patch tightly scoped to issue #1282 (just replacing deprecated Also, Scrutinizer is currently reporting |
|
I checked the Scrutinizer failure in detail (inspection For reference, Scrutinizer is also failed for current This patch remains intentionally small and scoped to replacing deprecated |
Summary
Fixes #1282 by replacing deprecated request access in
ItemsController.What changed
request()->get('page', 1)withrequest()->input('page', 1).request()->get('keyword', "")withrequest()->input('keyword', '').< 1becomes1).Why
symfony/http-foundation7.4 deprecatesRequest::get()and recommends request source-specific access methods.Reproduction
symfony/http-foundation >= 7.4.?page=2).ItemsControllerdue toRequest::get()usage.