Skip to content

Commit 3d1fac3

Browse files
committed
Type hints don't add anything to this test, so remove them for lower php version support
1 parent a200644 commit 3d1fac3

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -883,18 +883,18 @@ function yieldFromTest()
883883
*
884884
* Generates an audio element to embed sounds
885885
*
886-
* @param mixed $src Either a source string or
886+
* @param mixed $src Either a source string or
887887
* an array of sources.
888-
* @param string $unsupportedMessage The message to display
888+
* @param mixed $unsupportedMessage The message to display
889889
* if the media tag is not supported by the browser.
890-
* @param string $attributes HTML attributes.
890+
* @param mixed $attributes HTML attributes.
891891
* @return string
892892
*/
893893
function audio(
894894
$src,
895-
string $unsupportedMessage = '',
896-
string $attributes = '',
897-
): string
895+
$unsupportedMessage = '',
896+
$attributes = '',
897+
)
898898
{
899899
return 'test';
900900
}

src/Standards/Squiz/Tests/Commenting/FunctionCommentUnitTest.inc.fixed

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -883,18 +883,18 @@ function yieldFromTest()
883883
*
884884
* Generates an audio element to embed sounds
885885
*
886-
* @param mixed $src Either a source string or
886+
* @param mixed $src Either a source string or
887887
* an array of sources.
888-
* @param string $unsupportedMessage The message to display
888+
* @param mixed $unsupportedMessage The message to display
889889
* if the media tag is not supported by the browser.
890-
* @param string $attributes HTML attributes.
890+
* @param mixed $attributes HTML attributes.
891891
* @return string
892892
*/
893893
function audio(
894894
$src,
895-
string $unsupportedMessage = '',
896-
string $attributes = '',
897-
): string
895+
$unsupportedMessage = '',
896+
$attributes = '',
897+
)
898898
{
899899
return 'test';
900900
}

0 commit comments

Comments
 (0)