diff --git a/src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patch.php b/src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patch.php index 6814560303..81718cd525 100644 --- a/src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patch.php +++ b/src/CoreShop/Bundle/ClassDefinitionPatchBundle/Patch.php @@ -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