From 3a9f7575f37736c08c7af5171a933b2d23544fc9 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 13 Jul 2025 08:21:51 -0400 Subject: [PATCH 1/5] fix: Update license badge URL in `README.md` and add license header in `LICENSE.md`. --- LICENSE.md | 2 ++ README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/LICENSE.md b/LICENSE.md index 1555f8e..fc31ae8 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,3 +1,5 @@ +BSD 3-Clause License + Copyright © 2008 by Terabytesoftw () All rights reserved. diff --git a/README.md b/README.md index b27774e..69c8a94 100644 --- a/README.md +++ b/README.md @@ -378,7 +378,7 @@ For detailed configuration options and advanced usage. ## License -[![License](https://poser.pugx.org/yii2-extensions/nested-sets-behavior/license)](LICENSE.md) +[![License](https://img.shields.io/github/license/yii2-extensions/nested-sets-behavior?style=flat)](LICENSE.md) ## Fork From 488ed11d050a1b9f9f9d87dfde21a13953108c39 Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 13 Jul 2025 08:25:00 -0400 Subject: [PATCH 2/5] fix: Correct license badge URL formatting in `README.md` and update license header in `LICENSE.md`. --- LICENSE.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LICENSE.md b/LICENSE.md index fc31ae8..13bf79d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,4 +1,4 @@ -BSD 3-Clause License +# BSD 3-Clause License Copyright © 2008 by Terabytesoftw () All rights reserved. diff --git a/README.md b/README.md index 69c8a94..9f8fce3 100644 --- a/README.md +++ b/README.md @@ -378,7 +378,7 @@ For detailed configuration options and advanced usage. ## License -[![License](https://img.shields.io/github/license/yii2-extensions/nested-sets-behavior?style=flat)](LICENSE.md) +[![License](https://img.shields.io/github/license/yii2-extensions/nested-sets-behavior)](LICENSE.md) ## Fork From f86e4d9eecccd165053a467cd914918757624f7e Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 13 Jul 2025 08:46:38 -0400 Subject: [PATCH 3/5] fix: Remove unnecessary return statement in `NestedSetsBehavior` class. --- src/NestedSetsBehavior.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/NestedSetsBehavior.php b/src/NestedSetsBehavior.php index fcd893b..199d6a8 100644 --- a/src/NestedSetsBehavior.php +++ b/src/NestedSetsBehavior.php @@ -260,8 +260,6 @@ public function afterUpdate(): void if ($this->operation === self::OPERATION_MAKE_ROOT) { $this->moveNodeAsRoot($currentOwnerTreeValue); $this->invalidateCache(); - - return; } if ($this->node === null) { From 8cd80576b303023620a3efe263fb39afb0b3e28e Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 13 Jul 2025 08:51:02 -0400 Subject: [PATCH 4/5] fix: Remove unnecessary cache invalidation in `NestedSetsBehavior` class during root node operation. --- src/NestedSetsBehavior.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/NestedSetsBehavior.php b/src/NestedSetsBehavior.php index 199d6a8..73ba6b6 100644 --- a/src/NestedSetsBehavior.php +++ b/src/NestedSetsBehavior.php @@ -259,7 +259,6 @@ public function afterUpdate(): void if ($this->operation === self::OPERATION_MAKE_ROOT) { $this->moveNodeAsRoot($currentOwnerTreeValue); - $this->invalidateCache(); } if ($this->node === null) { From 5913d505b303adb2ae4e1f2496ab2034491bacab Mon Sep 17 00:00:00 2001 From: Wilmer Arambula Date: Sun, 13 Jul 2025 08:54:45 -0400 Subject: [PATCH 5/5] Add line to `CHANGELOG.md`. --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7f8c43b..b2273a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## 0.1.1 Under development +- Bug #85: Update license badge URL in `README.md` and add license header in `LICENSE.md` and kill infection mutant (@terabytesoftw) + ## 0.1.0 July 8, 2025 - Initial release