From 78d06cca3c4bfddbf1bfb139c9b6668ba37e4dfd Mon Sep 17 00:00:00 2001 From: Samantha Date: Wed, 27 Mar 2024 00:27:43 -0500 Subject: [PATCH] docs: remove redundant `@param` annotation (#43) Followup to d878e57 / #42 --- CHANGELOG.md | 1 + src/MediaType.php | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 008590c..dba3a21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Fixes minor phpDoc annotation issues within `MediaType`. Specifically: - Removes redundant `@return` annotations that are already specified from return typehints + - Removes redundant `@param` annotation from `getParameterValue()` - Adds missing `@see` annotation to `isAudioOrVideo()` method in reference to a WHATWG Standard link ## 2.0.0 (2023-12-11) diff --git a/src/MediaType.php b/src/MediaType.php index d4f41f1..16c3601 100644 --- a/src/MediaType.php +++ b/src/MediaType.php @@ -63,8 +63,6 @@ public function getEssence(): string { * if that parameter exists; otherwise, it will return a null value. * e.g, if given a media type of 'text/plain;charset=UTF-8', and the * given parameter is 'charset', it will return 'UTF-8'. - * - * @param string $parameterName */ public function getParameterValue( string $parameterName ): ?string { if ( !\array_key_exists( $parameterName, $this->parameters ) ) {