Skip to content

Commit 771d722

Browse files
bug symfony#52112 [HttpKernel] Fix missing argument $statusCode in ProfilerStorageInterface::find() (HeahDude)
This PR was merged into the 6.4 branch. Discussion ---------- [HttpKernel] Fix missing argument `$statusCode` in `ProfilerStorageInterface::find()` | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | ~ | License | MIT It seems the argument has never been added to the internal interface since its introduction in `FileProfilerStorage::find()` in 3.1 (ref symfony@7d3700a#diff-da2e8209f32b7918b8869eaa8d63c28e63b6e6a9b68f43eb26745d038100418f). Commits ------- 4ad8457 [HttpKernel] Fix missing argument `$statusCode` in `ProfilerStorageInterface::find()`
2 parents d4b65e4 + 4ad8457 commit 771d722

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ interface ProfilerStorageInterface
2929
/**
3030
* Finds profiler tokens for the given criteria.
3131
*
32-
* @param int|null $limit The maximum number of tokens to return
33-
* @param int|null $start The start date to search from
34-
* @param int|null $end The end date to search to
35-
* @param \Closure|null $filter A filter to apply on the list of tokens
32+
* @param int|null $limit The maximum number of tokens to return
33+
* @param int|null $start The start date to search from
34+
* @param int|null $end The end date to search to
35+
* @param string|null $statusCode The response status code
36+
* @param \Closure|null $filter A filter to apply on the list of tokens
3637
*/
37-
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, int $start = null, int $end = null/* , \Closure $filter = null */): array;
38+
public function find(?string $ip, ?string $url, ?int $limit, ?string $method, int $start = null, int $end = null/* , string $statusCode = null, \Closure $filter = null */): array;
3839

3940
/**
4041
* Reads data associated with the given token.

0 commit comments

Comments
 (0)