From 967ec0b8643de21265bbd57650eae83d1f19ec9c Mon Sep 17 00:00:00 2001 From: Sami Dokus Date: Mon, 12 Oct 2026 15:20:37 -0400 Subject: [PATCH 1/2] fix(licensing): set the get_activated_entry() deprecation version to 2.0.1 [SMTNC-3098] --- changelog/fix-deprecated-version.yaml | 5 +++++ src/Harbor/Licensing/Product_Collection.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 changelog/fix-deprecated-version.yaml diff --git a/changelog/fix-deprecated-version.yaml b/changelog/fix-deprecated-version.yaml new file mode 100644 index 00000000..cf9b5dc6 --- /dev/null +++ b/changelog/fix-deprecated-version.yaml @@ -0,0 +1,5 @@ +significance: patch +type: fix +entry: Product_Collection::get_activated_entry() now reports the version it was + deprecated in, instead of "TBD", in its deprecation notice. +timestamp: 2026-10-12T19:20:36.000Z diff --git a/src/Harbor/Licensing/Product_Collection.php b/src/Harbor/Licensing/Product_Collection.php index d330ba60..26a1bd2e 100644 --- a/src/Harbor/Licensing/Product_Collection.php +++ b/src/Harbor/Licensing/Product_Collection.php @@ -61,14 +61,14 @@ public function get_all_by_slug( string $slug ): array { * Returns null when no entry for the slug has activated_here set to true. * * @since 1.0.0 - * @deprecated TBD Use get_all_by_slug() and check get_activated_here() on each entry. + * @deprecated 2.0.1 Use get_all_by_slug() and check get_activated_here() on each entry. * * @param string $slug The product slug. * * @return Product_Entry|null */ public function get_activated_entry( string $slug ): ?Product_Entry { - _deprecated_function( __METHOD__, 'TBD', __CLASS__ . '::get_all_by_slug()' ); + _deprecated_function( __METHOD__, '2.0.1', __CLASS__ . '::get_all_by_slug()' ); foreach ( $this as $entry ) { if ( $entry->get_product_slug() === $slug && $entry->get_activated_here() ) { From 45e9b96840b3844b07c55fcab2894c64662d0caa Mon Sep 17 00:00:00 2001 From: Sami Dokus Date: Mon, 12 Oct 2026 15:28:32 -0400 Subject: [PATCH 2/2] chore(changelog): drop the deprecation version entry [SMTNC-3098] --- changelog/fix-deprecated-version.yaml | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 changelog/fix-deprecated-version.yaml diff --git a/changelog/fix-deprecated-version.yaml b/changelog/fix-deprecated-version.yaml deleted file mode 100644 index cf9b5dc6..00000000 --- a/changelog/fix-deprecated-version.yaml +++ /dev/null @@ -1,5 +0,0 @@ -significance: patch -type: fix -entry: Product_Collection::get_activated_entry() now reports the version it was - deprecated in, instead of "TBD", in its deprecation notice. -timestamp: 2026-10-12T19:20:36.000Z