Skip to content

Commit 9fa798c

Browse files
committed
Add back SentryExtension::__construct
1 parent 7e0c601 commit 9fa798c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,11 @@ parameters:
260260
count: 1
261261
path: src/Tracing/HttpClient/TraceableResponseForV6.php
262262

263+
-
264+
message: "#^Constructor of class Sentry\\\\SentryBundle\\\\Twig\\\\SentryExtension has an unused parameter \\$hub\\.$#"
265+
count: 1
266+
path: src/Twig/SentryExtension.php
267+
263268
-
264269
message: "#^Cannot access offset 'profiles_sample_rate' on mixed\\.$#"
265270
count: 1

src/Twig/SentryExtension.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Sentry\SentryBundle\Twig;
66

7+
use Sentry\State\HubInterface;
78
use Twig\Extension\AbstractExtension;
89
use Twig\TwigFunction;
910

@@ -12,6 +13,13 @@
1213

1314
final class SentryExtension extends AbstractExtension
1415
{
16+
/**
17+
* @param HubInterface $hub The current hub
18+
*/
19+
public function __construct(HubInterface $hub = null)
20+
{
21+
}
22+
1523
/**
1624
* {@inheritdoc}
1725
*/

0 commit comments

Comments
 (0)