Skip to content

Released version 4.0.2

Latest

Choose a tag to compare

@dg dg released this 27 Oct 01:44
· 1 commit to master since this release
  • Supports PHP 8.6
  • Removed the internal _isCloning() method; no code outside the library calls it
  • lookup() and lookupPath() always answer from the current tree: the root is found correctly after the tree is attached higher up, and a cloned component finds its cloned ancestors instead of the original ones
  • An exception thrown from a monitor() callback now cancels the change cleanly: the component stays where it was and the callbacks that already ran get their counterpart, which is what forbidding a form nested in another form relies on
  • Callbacks that change the tree themselves – remove or move their own component, a sibling or an ancestor – keep the tree, lookup() and the attached/detached notifications consistent
  • removeComponent() detaches the component before dropping it from the container, so $detached callbacks still see it in its place, and lookup() inside them still finds the ancestor being left