Skip to content

Commit 4822773

Browse files
committed
Drop dead hydrator asignment
1 parent 3386716 commit 4822773

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/Generator/WebHooks.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,6 @@ public static function generate(string $namespace, string $baseNamespace, array
5252
],
5353
Class_::MODIFIER_PUBLIC
5454
)
55-
)->addStmt(
56-
$factory->method('__construct')->makePublic()->addStmt(
57-
new Node\Expr\Assign(
58-
new Node\Expr\PropertyFetch(
59-
new Node\Expr\Variable('this'),
60-
'hydrator'
61-
),
62-
new Node\Expr\New_(
63-
new Node\Name('\\' . $baseNamespace . 'OptimizedHydratorMapper'),
64-
[
65-
]
66-
),
67-
)
68-
)
6955
)->addStmt(
7056
$factory->method('resolve')->makePublic()->makeStatic()->setReturnType('\\' . WebHookInterface::class)->addParam(
7157
(new Param('event'))->setType('string')

0 commit comments

Comments
 (0)