Skip to content

Commit

Permalink
Docs: improve type specificity
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Sep 26, 2023
1 parent 8197fe3 commit 52539e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/MessageDismisserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function testIsDismissibleWithVersions( $savedTime, $currentTime, $expect
/**
* Provides array with test values.
*
* @return array[]
* @return array<string, array<int|bool>>
*/
public function versionNumbersProvider() {
return array(
Expand Down
2 changes: 2 additions & 0 deletions tests/VersionRequirementTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ public function testFromCompareString( $expectation, $component, $compareString

/**
* Provides data to test fromCompareString with.
*
* @return array<string, array<string|array<string>>>
*/
public function dataFromCompareString() {
return array(
Expand Down
2 changes: 1 addition & 1 deletion tests/WPMessageDismissListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function testDismiss( $action, $nonce, $verifyNonceTimes, $isCorrectNonce
/**
* Data provider for testDismiss.
*
* @return array
* @return array<string, array<string, mixed>>
*/
public function listenProvider() {
return array(
Expand Down

0 comments on commit 52539e5

Please sign in to comment.