diff --git a/Classes/Domain/Model/Changes/AbstractCreate.php b/Classes/Domain/Model/Changes/AbstractCreate.php index 6ebae28193..c2278f8d3b 100644 --- a/Classes/Domain/Model/Changes/AbstractCreate.php +++ b/Classes/Domain/Model/Changes/AbstractCreate.php @@ -29,7 +29,7 @@ abstract class AbstractCreate extends AbstractStructuralChange /** * The type of the node that will be created */ - protected ?NodeTypeName $nodeTypeName; + protected ?NodeTypeName $nodeTypeName = null; /** * Incoming data from creationDialog diff --git a/Classes/Domain/Model/Changes/CopyInto.php b/Classes/Domain/Model/Changes/CopyInto.php index 56c4e55d5d..b0a37574d5 100644 --- a/Classes/Domain/Model/Changes/CopyInto.php +++ b/Classes/Domain/Model/Changes/CopyInto.php @@ -21,7 +21,7 @@ class CopyInto extends AbstractStructuralChange { protected ?string $parentContextPath; - protected ?Node $cachedParentNode; + protected ?Node $cachedParentNode = null; public function setParentContextPath(string $parentContextPath): void {