Skip to content

Commit 304cc40

Browse files
committed
toString fix
1 parent cc26dd3 commit 304cc40

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/ASN1/ImplicitlyTaggedObject.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ public function getStringValue()
3333
{
3434
return $this->content->binaryData;
3535
}
36+
37+
public function __toString(): string
38+
{
39+
return '['.$this->getIdentifier()->getTagNumber().']' . implode("\n", $this->decoratedObjects);
40+
}
3641
}

src/ASN1/Universal/EOC.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,9 @@ protected function getEncodedValue()
2929
{
3030
return null;
3131
}
32+
33+
public function __toString(): string
34+
{
35+
return '';
36+
}
3237
}

0 commit comments

Comments
 (0)