Tree
Tree copied to clipboard
A basic but flexible tree data structure for php and a fluent tree builder implementation.
Bumps [actions/cache](https://github.com/actions/cache) from 2 to 3.0.1. Release notes Sourced from actions/cache's releases. v3.0.1 Added support for caching from GHES 3.5. Fixed download issue for files > 2GB during restore. v3.0.0...
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3. Release notes Sourced from actions/checkout's releases. v3.0.0 Update default runtime to node16 v2.4.0 Convert SSH URLs like org-<ORG_ID>@github.com: to https://github.com/ - pr v2.3.5 Update...
Bumps [actions/github-script](https://github.com/actions/github-script) from 3 to 6. Release notes Sourced from actions/github-script's releases. v6.0.0 What's Changed Update default runtime to node16 by @thboop in actions/github-script#235 Update node-fetch by @joshmgross in actions/github-script#237...
First of all, awesome work guys, very useful and helpful. Just a comment about semantics if I may. Your generic "[Visitor](https://refactoring.guru/design-patterns/visitor)" is more like an "[Iterator](https://refactoring.guru/design-patterns/iterator)". The "Visitor" pattern usually...
Bumps [shivammathur/setup-php](https://github.com/shivammathur/setup-php) from 2 to 2.11.0. Release notes Sourced from shivammathur/setup-php's releases. 2.11.0 Improve cache in shivammathur/php-ubuntu for PHP 5.6 to PHP 8.0. Using cache should reduce setup-php runtime on...
Can we get a level order traversal built in? I could help with the implementation
# Changed log - According to the official [PHPUnit doc](https://phpunit.readthedocs.io/en/7.5/fixtures.html#more-setup-than-teardown), it should be `protected function setUp(): void` method. - Fixing the `NodeTest` class namespace to be compatible with `PSR-4` autoloading.
From https://twitter.com/localheinz/status/1332251797226991616
As I can see, visitors return array of nodes, and how I should use it after I get it? Proposed I should reiterate this array? 1) It looks like visit...
Hi! I like your code very much - the quick question is: Can you please enhance your brilliant code implementing (pseudocode) as follows: 1) $branch = $node->getBranch($childNode) This should return...