Skip to content

Commit

Permalink
Update update-protect-status-format
Browse files Browse the repository at this point in the history
  • Loading branch information
nateweller committed Nov 8, 2024
1 parent 40f6c65 commit 5e90fd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Significance: minor
Type: deprecated
Significance: patch
Type: added

Deprecated categorized properties in Threat_History in favor of new threats list property.
Added phan ignore doc blocks for use of deprecated properties.
4 changes: 2 additions & 2 deletions projects/plugins/protect/src/class-scan-history.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ private static function normalize_api_data( $scan_data ) {
/**
* Handles threats for extensions such as plugins or themes.
*
* @phan-suppress PhanDeprecatedProperty -- Maintaining backwards compatibility.
*
* @param object $threat The threat object.
* @param object $history The history object.
* @param string $type The type of extension ('plugin' or 'theme').
Expand Down Expand Up @@ -340,8 +342,6 @@ private static function handle_core_threats( $threat, $history ) {
/**
* Handles additional threats that are not core, plugin or theme
*
* @phan-suppress PhanDeprecatedProperty -- Maintaining backwards compatibility.
*
* @param object $threat The threat object.
* @param object $history The history object.
* @return void
Expand Down

0 comments on commit 5e90fd0

Please sign in to comment.