Skip to content

Commit 97b844c

Browse files
committed
Add generic types to traversable implementations
1 parent 76ed6f4 commit 97b844c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Extension/ProfilerExtension.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bridge\Twig\Extension;
1313

1414
use Symfony\Component\Stopwatch\Stopwatch;
15+
use Symfony\Component\Stopwatch\StopwatchEvent;
1516
use Twig\Extension\ProfilerExtension as BaseProfilerExtension;
1617
use Twig\Profiler\Profile;
1718

@@ -21,6 +22,10 @@
2122
final class ProfilerExtension extends BaseProfilerExtension
2223
{
2324
private $stopwatch;
25+
26+
/**
27+
* @var \SplObjectStorage<Profile, StopwatchEvent>
28+
*/
2429
private $events;
2530

2631
public function __construct(Profile $profile, Stopwatch $stopwatch = null)

0 commit comments

Comments
 (0)