Tags give the ability to mark specific points in history as being important
-
0.0.2
protected336fa17e · ·This release strengthens cloning and state restoration for PHP internal objects, with a focus on iterator, SimpleXML, Throwable, DOM, and uncloneable internal-class edge cases. Highlights: - Restores uncloneable internal objects through reflection rebuilds and registered internal handlers, with documented CannotRestoreObjectException failures when restoration is impossible. - Preserves iterator state more accurately, including ArrayIterator cursor position, cloned inner iterators, SimpleXMLIterator positions, and AppendIterator positions with duplicate keys. - Preserves internal Exception/Error state such as file, line, trace, previous throwable, and string output. - Fixes SimpleXML child-node property handling so projected XML nodes are treated as internal state while declared userland properties remain supported. - Avoids nullable optional constructor arguments for DOM restoration, preventing PHP 8.5 deprecations. - Tightens internal handler behavior so handlers only process runtime PHP internal classes, not userland subclasses. - Updates documentation for the added internal-state restoration difference from spatie/php-cloneable and adds an AI implementation assistance disclaimer. - Removes an invalid PHPStan suppression and expands regression/contract coverage around internal handlers. Potential compatibility note: userland subclasses of PHP internal classes are now explicitly rejected by internal handlers rather than being restored through those handlers.