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 Dec 14, 2023
1 parent 8996502 commit 640295c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/Polyfills/AssertClosedResourceNotResourceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testShouldClosedResourceAssertionBeSkipped( $value ) {
/**
* Data provider
*
* @return array
* @return array<string, array<mixed>>
*/
public static function dataNotResource() {
return [
Expand Down
8 changes: 4 additions & 4 deletions tests/Polyfills/AssertObjectPropertyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function testAssertObjectNotHasPropertyFailsOnInvalidInputTypePropertyNam
/**
* Data provider.
*
* @return array
* @return array<string, array<mixed>>
*/
public static function dataAssertObjectPropertyFailsOnInvalidInputTypePropertyName() {
// Only testing closed resource to not leak an open resource.
Expand Down Expand Up @@ -166,7 +166,7 @@ public function testAssertObjectNotHasPropertyFailsOnInvalidInputTypeObject( $in
/**
* Data provider.
*
* @return array
* @return array<string, array<mixed>>
*/
public static function dataAssertObjectPropertyFailsOnInvalidInputTypeObject() {
// Only testing closed resource to not leak an open resource.
Expand Down Expand Up @@ -255,7 +255,7 @@ public function testAssertObjectNotHasPropertyFails( $name ) {
/**
* Data provider.
*
* @return array
* @return array<string, array<string>>
*/
public static function dataAssertObjectPropertyDeclaredProps() {
return [
Expand All @@ -274,7 +274,7 @@ public static function dataAssertObjectPropertyDeclaredProps() {
/**
* Data provider.
*
* @return array
* @return array<string, array<string>>
*/
public static function dataAssertObjectPropertyUnavailableProps() {
return [
Expand Down
2 changes: 1 addition & 1 deletion tests/Polyfills/AssertStringContainsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function testAssertStringNotContainsStringIgnoringCaseEmptyNeedle() {
* @see testAssertStringContainsStringEmptyNeedle() For the array format.
* @see testAssertStringNotContainsStringEmptyNeedle() For the array format.
*
* @return array
* @return array<string, array<string>>
*/
public static function dataHaystacks() {
return [
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCases/TestCaseTestTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ trait TestCaseTestTrait {
/**
* Data provider for the testHaveFixtureMethodsBeenTriggered() test.
*
* @return array[]
* @return array<array<int>>
*/
public static function dataHaveFixtureMethodsBeenTriggered() {
return [
Expand Down

0 comments on commit 640295c

Please sign in to comment.