Skip to content

Commit

Permalink
Merge pull request #31 from humanmade/remove-deprecation-warning
Browse files Browse the repository at this point in the history
remove deprecation warning in PHP8.1+
  • Loading branch information
mikelittle authored Sep 20, 2024
2 parents 97ff7fb + ea9909f commit cbe6732
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 cbe6732

Please sign in to comment.