Skip to content

Commit f332d9f

Browse files
authored
Merge pull request #3659 from neos/bugfix/feedbacks-with-optional-properties
BUGFIX: Feedbacks have null defaults for optional properties
2 parents 347ae87 + 2e5cf50 commit f332d9f

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

Classes/Domain/Model/AbstractChange.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ abstract class AbstractChange implements ChangeInterface
2727
{
2828
use NodeTypeWithFallbackProvider;
2929

30-
protected ?Node $subject;
30+
protected ?Node $subject = null;
3131

3232
#[Flow\Inject]
3333
protected ContentRepositoryRegistry $contentRepositoryRegistry;

Classes/Domain/Model/Changes/AbstractCreate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ abstract class AbstractCreate extends AbstractStructuralChange
2929
/**
3030
* The type of the node that will be created
3131
*/
32-
protected ?NodeTypeName $nodeTypeName;
32+
protected ?NodeTypeName $nodeTypeName = null;
3333

3434
/**
3535
* Incoming data from creationDialog

Classes/Domain/Model/Changes/CopyInto.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class CopyInto extends AbstractStructuralChange
2121
{
2222
protected ?string $parentContextPath;
2323

24-
protected ?Node $cachedParentNode;
24+
protected ?Node $cachedParentNode = null;
2525

2626
public function setParentContextPath(string $parentContextPath): void
2727
{

Classes/Domain/Model/Feedback/Operations/ReloadContentOutOfBand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
class ReloadContentOutOfBand extends AbstractFeedback
3030
{
31-
protected ?Node $node;
31+
protected ?Node $node = null;
3232

3333
protected ?RenderedNodeDomAddress $nodeDomAddress;
3434

Classes/Domain/Model/Feedback/Operations/ReloadDocument.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class ReloadDocument extends AbstractFeedback
2525
{
26-
protected ?Node $node;
26+
protected ?Node $node = null;
2727

2828
#[Flow\Inject]
2929
protected ContentRepositoryRegistry $contentRepositoryRegistry;

Classes/Domain/Model/Feedback/Operations/UpdateNodeInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class UpdateNodeInfo extends AbstractFeedback
2525
{
26-
protected ?Node $node;
26+
protected ?Node $node = null;
2727

2828
/**
2929
* @Flow\Inject

Classes/Domain/Model/Feedback/Operations/UpdateWorkspaceInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
class UpdateWorkspaceInfo extends AbstractFeedback
2525
{
26-
protected ?WorkspaceName $workspaceName;
26+
protected ?WorkspaceName $workspaceName = null;
2727

2828
/**
2929
* @Flow\Inject

0 commit comments

Comments
 (0)