You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: migrate \$_REQUEST to ServerRequest in 9 controllers
Replace direct \$_REQUEST access with ServerRequest methods
(getParam, has) in:
- Database\ImportController
- Database\Structure\EmptyTableController
- Database\Structure\FavoriteTableController
- Database\Structure\RealRowCountController
- Database\StructureController
- Operations\DatabaseController
- Server\ImportController
- Table\ChartController
- Table\DeleteRowsController
The empty() replacement in EmptyTableController and
DeleteRowsController intentionally narrows the condition:
empty() treats '0' as falsy, but 0 is a valid pagination
offset for calculatePosForLastPage().
Update phpstan-baseline.neon and psalm-baseline.xml to
reflect the changed type signatures.
Update RealRowCountControllerTest to pass parameters via
ServerRequest query params instead of \$_REQUEST globals.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
0 commit comments