Skip to content

Commit

Permalink
remove deprecation warning in PHP8.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelittle committed Sep 20, 2024
1 parent 97ff7fb commit ea9909f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/admin/namespace.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function output_metabox( WP_Post $post ) {
}

function attachment_fields( $fields, WP_Post $post ) {

Check failure on line 21 in inc/admin/namespace.php

View check run for this annotation

HM Linter / hmlinter

inc/admin/namespace.php#L21

Missing doc comment for function attachment_fields()
Raw output
{
  "line": 21,
  "column": 1,
  "severity": "error",
  "message": "Missing doc comment for function attachment_fields()",
  "source": "Squiz.Commenting.FunctionComment.Missing"
}
$action = filter_input( INPUT_GET, 'action', FILTER_SANITIZE_STRING );
$action = filter_input( INPUT_GET, 'action', FILTER_UNSAFE_RAW );
$post_id = filter_input( INPUT_GET, 'post', FILTER_SANITIZE_NUMBER_INT );

// We use a metabox on the attachment edit screen.
Expand Down

0 comments on commit ea9909f

Please sign in to comment.