Skip to content

Commit

Permalink
Merge pull request #152 from nicmart/fix/property
Browse files Browse the repository at this point in the history
Fix: Add property type declarations
  • Loading branch information
localheinz committed Jan 28, 2023
2 parents a32954a + 8dcf4c3 commit 5df2c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ For a full diff see [`0.6.0...master`][0.6.0...master].
- Changed return type declaration of `NodeInterface::root()` from `self` to `static` ([#149]), by [@localheinz]
- Added a missing return type declaration to `NodeInterface::getSize()` ([#150]), by [@localheinz]
- Added parameter type declarations ([#151]), by [@localheinz]
- Added property type declarations ([#152]), by [@localheinz]

## [`0.6.0`][0.6.0]

Expand Down Expand Up @@ -224,6 +225,7 @@ For a full diff see [`fcfd14e...v0.1.1`][fcfd14e...0.1.1].
[#149]: https://github.com/nicmart/Tree/pull/149
[#150]: https://github.com/nicmart/Tree/pull/150
[#151]: https://github.com/nicmart/Tree/pull/151
[#152]: https://github.com/nicmart/Tree/pull/152

[@asalazar-pley]: https://github.com/asalazar-pley
[@Djuki]: https://github.com/Djuki
Expand Down
5 changes: 1 addition & 4 deletions src/Node/NodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@

trait NodeTrait
{
/**
* @var mixed
*/
private $value;
private mixed $value = null;
private ?NodeInterface $parent = null;

/**
Expand Down

0 comments on commit 5df2c2d

Please sign in to comment.