Skip to content

Commit 75abeb5

Browse files
committed
Change isRemoval to only check for minOccurs=0
1 parent 22bd76b commit 75abeb5

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/AbstractElementHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,6 @@ public function isRequired(): bool
169169

170170
public function isRemovable(): bool
171171
{
172-
return $this->isOptional() && $this->getNillable();
172+
return $this->isOptional();
173173
}
174174
}

tests/ElementHandlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function testYandexIsRemovableFalse(): void
242242
'name' => 'TrackingParams',
243243
]);
244244

245-
$this->assertFalse($element->isRemovable());
245+
$this->assertTrue($element->isRemovable());
246246
}
247247

248248
public function testActonGetNillableFalse(): void

0 commit comments

Comments
 (0)