We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed05560 + 4b7a8ff commit 3ce7adfCopy full SHA for 3ce7adf
src/ASN1/ASN1Object.php
@@ -353,10 +353,17 @@ final public static function fromFile($fileContent)
353
return self::fromBinary($file);
354
}
355
356
+ /**
357
+ * In case we have to provide object as as, but won't provide access to parent node.
358
+ * That's very important in CMS package, cause we do not wont to give an
359
+ * ability to change any part of ASN.1 structure.
360
+ *
361
+ * @return ASN1ObjectInterface
362
+ */
363
public function detach()
364
{
- $object = clone $this;
- $this->parent = null;
365
+ $object = clone $this;
366
+ $object->parent = null;
367
368
return $object;
369
0 commit comments