diff --git a/src/Generator/WebHooks.php b/src/Generator/WebHooks.php index 291d0b6..9b98c15 100644 --- a/src/Generator/WebHooks.php +++ b/src/Generator/WebHooks.php @@ -52,20 +52,6 @@ public static function generate(string $namespace, string $baseNamespace, array ], Class_::MODIFIER_PUBLIC ) - )->addStmt( - $factory->method('__construct')->makePublic()->addStmt( - new Node\Expr\Assign( - new Node\Expr\PropertyFetch( - new Node\Expr\Variable('this'), - 'hydrator' - ), - new Node\Expr\New_( - new Node\Name('\\' . $baseNamespace . 'OptimizedHydratorMapper'), - [ - ] - ), - ) - ) )->addStmt( $factory->method('resolve')->makePublic()->makeStatic()->setReturnType('\\' . WebHookInterface::class)->addParam( (new Param('event'))->setType('string')