File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ class NodeSignalInterceptor
38
38
*/
39
39
public function nodeAdded (NodeInterface $ node )
40
40
{
41
- if (!array_key_exists ($ node ->getNodeType ()->getName (), $ this ->sortingInstructions )) {
41
+ if (!array_key_exists ($ node ->getNodeType ()->getName (), $ this ->sortingInstructions ?? [] )) {
42
42
return ;
43
43
}
44
44
@@ -61,7 +61,7 @@ public function nodeUpdated(NodeInterface $node)
61
61
return ;
62
62
}
63
63
64
- if (array_key_exists ($ node ->getNodeType ()->getName (), $ this ->sortingInstructions )) {
64
+ if (array_key_exists ($ node ->getNodeType ()->getName (), $ this ->sortingInstructions ?? [] )) {
65
65
$ this ->createArchivist ()->organizeNode ($ node , $ this ->sortingInstructions [$ node ->getNodeType ()->getName ()]);
66
66
}
67
67
}
You can’t perform that action at this time.
0 commit comments