Skip to content

Commit a9f373a

Browse files
MateuszKolankowskipawlakadrian
authored andcommitted
Refactor isHidden property in ContentTree Node for consistency and optimization
1 parent d8ef3c7 commit a9f373a

File tree

2 files changed

+2
-4
lines changed
  • src/lib/REST

2 files changed

+2
-4
lines changed

src/lib/REST/Output/ValueObjectVisitor/ContentTree/Node.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ public function visit(Visitor $visitor, Generator $generator, $data)
5353
$generator->startValueElement('isInvisible', $generator->serializeBool($data->isInvisible));
5454
$generator->endValueElement('isInvisible');
5555

56-
$generator->startValueElement('isHidden', $generator->serializeBool($data->isHidden));
57-
$generator->endValueElement('isHidden');
56+
$generator->valueElement('isHidden', $generator->serializeBool($data->isHidden));
5857

5958
$generator->startValueElement('displayLimit', $data->displayLimit);
6059
$generator->endValueElement('displayLimit');

src/lib/REST/Value/ContentTree/Node.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,7 @@ class Node extends RestValue
3535
/** @var bool */
3636
public $isInvisible;
3737

38-
/** @var bool */
39-
public $isHidden;
38+
public bool $isHidden;
4039

4140
/** @var int */
4241
public $displayLimit;

0 commit comments

Comments
 (0)