diff --git a/changelog/fix-drop-type-hint-from-wp-callback.yaml b/changelog/fix-drop-type-hint-from-wp-callback.yaml new file mode 100644 index 00000000..a70ce4aa --- /dev/null +++ b/changelog/fix-drop-type-hint-from-wp-callback.yaml @@ -0,0 +1,4 @@ +significance: patch +type: fix +entry: Type-hint in WP Core's callback was too strict and could cause fatal. +timestamp: 2026-05-21T15:02:34.497Z diff --git a/src/Harbor/Admin/Feature_Manager_Page.php b/src/Harbor/Admin/Feature_Manager_Page.php index 4e11f235..142f07c8 100644 --- a/src/Harbor/Admin/Feature_Manager_Page.php +++ b/src/Harbor/Admin/Feature_Manager_Page.php @@ -128,12 +128,13 @@ public function maybe_register_page(): void { * the React bundle is loaded only on this specific admin page. * * @since 1.0.0 + * @since TBD Dropped string type-hint for $hook_suffix. * * @param string $hook_suffix Current admin page hook suffix. * * @return void */ - public function maybe_enqueue_assets( string $hook_suffix ): void { + public function maybe_enqueue_assets( $hook_suffix ): void { if ( $hook_suffix !== $this->page_hook ) { return; }