diff --git a/src/Tag/Select.php b/src/Tag/Select.php index d5198a89..8b6f87ad 100644 --- a/src/Tag/Select.php +++ b/src/Tag/Select.php @@ -224,9 +224,6 @@ public function size(?int $size): self return $new; } - /** - * @param bool|float|int|string|Stringable|null $value - */ public function unselectValue(bool|float|int|string|Stringable|null $value): self { $new = clone $this; diff --git a/tests/common/Objects/TestTagContentTrait.php b/tests/common/Objects/TestTagContentTrait.php index 630892c0..3b58d1f2 100644 --- a/tests/common/Objects/TestTagContentTrait.php +++ b/tests/common/Objects/TestTagContentTrait.php @@ -11,6 +11,11 @@ final class TestTagContentTrait extends NormalTag { use TagContentTrait; + public function getContentArray(): array + { + return $this->content; + } + protected function getName(): string { return 'test'; diff --git a/tests/common/Tag/Base/TagContentTraitTest.php b/tests/common/Tag/Base/TagContentTraitTest.php index 41371f89..f8d6dab8 100644 --- a/tests/common/Tag/Base/TagContentTraitTest.php +++ b/tests/common/Tag/Base/TagContentTraitTest.php @@ -117,6 +117,13 @@ public function testNamedParametersContent(): void ); } + public function testContentArray(): void + { + $tag = TestTagContentTrait::tag()->content(a: '1', b: '2'); + + $this->assertSame(['1', '2'], $tag->getContentArray()); + } + public function testImmutability(): void { $tag = TestTagContentTrait::tag();