Skip to content

Commit

Permalink
Fix phpstan incorrect error
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincz committed Apr 18, 2023
1 parent e630664 commit 8e48a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/ProfilerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function __invoke(Request $request, string $token): Response
$profile = $this->profiler->loadProfile($token);

// Type hint as int for the $limit argument of the find method was updated in Symfony 5.4.22 and 6.2.8
$limit = (Kernel::VERSION_ID >= 60208 || (Kernel::MAJOR_VERSION === 5 && Kernel::VERSION_ID >= 50422)) ? 100 : '100';
$limit = (Kernel::VERSION_ID >= 60208 || (Kernel::MAJOR_VERSION === 5 && Kernel::VERSION_ID >= 50422)) ? 100 : '100'; // @phpstan-ignore-line

$tokens = array_map(function ($tokenData) {
$profile = $this->profiler->loadProfile($tokenData['token']);
Expand Down

0 comments on commit 8e48a1b

Please sign in to comment.