8000 bug #49657 [HttpKernel] Change limit argument from string to integer … · symfony/symfony@67b9ac9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67b9ac9

Browse files
committed
bug #49657 [HttpKernel] Change limit argument from string to integer for Profiler (Aliance)
This PR was merged into the 5.4 branch. Discussion ---------- [HttpKernel] Change limit argument from string to integer for Profiler | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #49656 | License | MIT Commits ------- fb9b0d0 Change limit argument from string to integer.
2 parents 2721aba + fb9b0d0 commit 67b9ac9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
< 8000 div class="pt-0">

src/Symfony/Component/HttpKernel/Profiler/Profiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,15 @@ public function purge()
116116
/**
117117
* Finds profiler tokens for the given criteria.
118118
*
119-
* @param string|null $limit The maximum number of tokens to return
119+
* @param int|null $limit The maximum number of tokens to return
120120
* @param string|null $start The start date to search from
121121
* @param string|null $end The end date to search to
122122
*
123123
* @return array
124124
*
125125
* @see https://php.net/datetime.formats for the supported date/time formats
126126
*/
127-
public function find(?string $ip, ?string $url, ?string $limit, ?string $method, ?string $start, ?string $end, string $statusCode = null)
127+
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, ?string $start, ?string $end, string $statusCode = null)
128128
{
129129
return $this->storage->find($ip, $url, $limit, $method, $this->getTimestamp($start), $this->getTimestamp($end), $statusCode);
130130
}

0 commit comments

Comments
 (0)
0