Skip to content

Commit

Permalink
BUGFIX: Add missing null defaults for optional properties
Browse files Browse the repository at this point in the history
  • Loading branch information
ahaeslich committed Nov 1, 2023
1 parent 24daee6 commit 2e5cf50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Changes/AbstractCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/Model/Changes/CopyInto.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class CopyInto extends AbstractStructuralChange
{
protected ?string $parentContextPath;

protected ?Node $cachedParentNode;
protected ?Node $cachedParentNode = null;

public function setParentContextPath(string $parentContextPath): void
{
Expand Down

0 comments on commit 2e5cf50

Please sign in to comment.