diff --git a/UPGRADE-7.0.md b/UPGRADE-7.0.md index d49a964dd6ca1..31b033ec2ae7f 100644 --- a/UPGRADE-7.0.md +++ b/UPGRADE-7.0.md @@ -295,6 +295,7 @@ HttpKernel * Remove `FileLinkFormatter`, use `FileLinkFormatter` from the ErrorHandler component instead * Remove `UriSigner`, use `UriSigner` from the HttpFoundation component instead * Remove `Kernel::stripComments()` + * Add argument `$filter` to `Profiler::find()` and `FileProfilerStorage::find()` Lock ---- diff --git a/src/Symfony/Component/HttpKernel/CHANGELOG.md b/src/Symfony/Component/HttpKernel/CHANGELOG.md index f5410cafc6841..9f251b7c4dae8 100644 --- a/src/Symfony/Component/HttpKernel/CHANGELOG.md +++ b/src/Symfony/Component/HttpKernel/CHANGELOG.md @@ -15,6 +15,7 @@ CHANGELOG * Remove `FileLinkFormatter`, use `FileLinkFormatter` from the ErrorHandler component instead * Remove `UriSigner`, use `UriSigner` from the HttpFoundation component instead * Add argument `$buildDir` to `WarmableInterface` + * Add argument `$filter` to `Profiler::find()` and `FileProfilerStorage::find()` 6.4 --- diff --git a/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php b/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php index f91eaf539582d..642e5017dea7e 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php +++ b/src/Symfony/Component/HttpKernel/Profiler/FileProfilerStorage.php @@ -42,10 +42,7 @@ public function __construct(string $dsn) } } - /** - * @param \Closure|null $filter A filter to apply on the list of tokens - */ - public function find(?string $ip, ?string $url, ?int $limit, ?string $method, int $start = null, int $end = null, string $statusCode = null/* , \Closure $filter = null */): array + public function find(?string $ip, ?string $url, ?int $limit, ?string $method, int $start = null, int $end = null, string $statusCode = null, \Closure $filter = null): array { $filter = 7 < \func_num_args() ? func_get_arg(7) : null; $file = $this->getIndexFilename(); diff --git a/src/Symfony/Component/HttpKernel/Profiler/Profiler.php b/src/Symfony/Component/HttpKernel/Profiler/Profiler.php index a609adf487346..384e78eb6367f 100644 --- a/src/Symfony/Component/HttpKernel/Profiler/Profiler.php +++ b/src/Symfony/Component/HttpKernel/Profiler/Profiler.php @@ -122,7 +122,7 @@ public function purge(): void * * @see https://php.net/datetime.formats for the supported date/time formats */ - public function find(?string $ip, ?string $url, ?int $limit, ?string $method, ?string $start, ?string $end, string $statusCode = null/* , \Closure $filter = null */): array + public function find(?string $ip, ?string $url, ?int $limit, ?string $method, ?string $start, ?string $end, string $statusCode = null, \Closure $filter = null): array { $filter = 7 < \func_num_args() ? func_get_arg(7) : null; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy