Skip to content

Commit aed9fff

Browse files
committed
Hydrator namespace fix
1 parent 615e49e commit aed9fff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/WebHooks.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function generate(string $namespace, string $baseNamespace, array
5353
Class_::MODIFIER_PUBLIC
5454
)
5555
)->addStmt(
56-
$factory->property('hydrator')->setType('\\' . $namespace . 'OptimizedHydratorMapper')->makeReadonly()->makePrivate()
56+
$factory->property('hydrator')->setType('\\' . $baseNamespace . 'OptimizedHydratorMapper')->makeReadonly()->makePrivate()
5757
)->addStmt(
5858
$factory->method('__construct')->makePublic()->addStmt(
5959
new Node\Expr\Assign(
@@ -62,7 +62,7 @@ public static function generate(string $namespace, string $baseNamespace, array
6262
'hydrator'
6363
),
6464
new Node\Expr\New_(
65-
new Node\Name('\\' . $namespace . 'OptimizedHydratorMapper'),
65+
new Node\Name('\\' . $baseNamespace . 'OptimizedHydratorMapper'),
6666
[
6767
]
6868
),

0 commit comments

Comments
 (0)