Skip to content

Commit

Permalink
[ClassDefinitionBundle] fix patch class instantiation
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Sep 30, 2024
1 parent a11255c commit f1dfd9c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,23 @@ public function __construct(
if (is_string($interface)) {
$this->interface = [$interface];
}
else {
$this->interface = $interface;
}

if (is_string($useTraits)) {
$this->useTraits = [$useTraits];
}
else {
$this->useTraits = $useTraits;
}

if (is_string($listingUseTraits)) {
$this->listingUseTraits = [$listingUseTraits];
}
else {
$this->listingUseTraits = $listingUseTraits;
}
}

public function getClassName(): string
Expand Down

0 comments on commit f1dfd9c

Please sign in to comment.