Skip to content

Commit bc2dea2

Browse files
committed
refactor: add strtoupper() to Request::getMethod()
The $upper functionality will be removed.
1 parent 6927873 commit bc2dea2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/Views/errors/html/error_exception.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
</tr>
200200
<tr>
201201
<td>HTTP Method</td>
202-
<td><?= esc($request->getMethod(true)) ?></td>
202+
<td><?= esc(strtoupper($request->getMethod())) ?></td>
203203
</tr>
204204
<tr>
205205
<td>IP Address</td>

system/Debug/Toolbar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function run(float $startTime, float $totalTime, RequestInterface $reques
7676
{
7777
// Data items used within the view.
7878
$data['url'] = current_url();
79-
$data['method'] = $request->getMethod(true);
79+
$data['method'] = strtoupper($request->getMethod());
8080
$data['isAJAX'] = $request->isAJAX();
8181
$data['startTime'] = $startTime;
8282
$data['totalTime'] = $totalTime * 1000;

0 commit comments

Comments
 (0)