Navigation Menu

Skip to content

Commit

Permalink
amending type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
SignpostMarv committed Jan 8, 2020
1 parent 5dbed5b commit aebfc76
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
26 changes: 12 additions & 14 deletions Tests/DaftTypedObjectRepositoryTest.php
Expand Up @@ -20,26 +20,24 @@
class DaftTypedObjectRepositoryTest extends Base
{
/**
* @return array<
int,
* @return list<
array{
0:class-string<AppendableTypedObjectRepository>,
1:array{type:class-string<T1>},
2:array<int, array<string, scalar|null>>,
3:array<int, array<string, scalar|null>>
2:list<array<string, scalar|null>>,
3:list<array<string, scalar|null>>
}
>
*/
public function dataProviderAppendTypedObject() : array
{
/**
* @var array<
int,
* @var list<
array{
0:class-string<AppendableTypedObjectRepository>,
1:array{type:class-string<T1>},
2:array<int, array<string, scalar|null>>,
3:array<int, array<string, scalar|null>>
2:list<array<string, scalar|null>>,
3:list<array<string, scalar|null>>
}
>
*/
Expand Down Expand Up @@ -72,8 +70,8 @@ public function dataProviderAppendTypedObject() : array
*
* @param class-string<AppendableTypedObjectRepository> $repo_type
* @param array{type:class-string<T1>} $repo_args
* @param array<int, S> $append_these
* @param array<int, S2> $expect_these
* @param list<S> $append_these
* @param list<S2> $expect_these
*/
public function testAppendTypedObject(
string $repo_type,
Expand Down Expand Up @@ -145,8 +143,8 @@ public function testAppendTypedObject(
*
* @param class-string<AppendableTypedObjectRepository> $repo_type
* @param array{type:class-string<T1>} $repo_args
* @param array<int, S> $_append_these
* @param array<int, S2> $expect_these
* @param list<S> $_append_these
* @param list<S2> $expect_these
*/
public function testDefaultFailure(
string $repo_type,
Expand Down Expand Up @@ -209,8 +207,8 @@ function ($property, $value) use ($object_type) {
*
* @param class-string<AppendableTypedObjectRepository> $repo_type
* @param array{type:class-string<T1>} $repo_args
* @param array<int, S> $_append_these
* @param array<int, S2> $expect_these
* @param list<S> $_append_these
* @param list<S2> $expect_these
*/
public function testCustomFailure(
string $repo_type,
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -63,7 +63,7 @@
"php-coveralls/php-coveralls": "^2.2",
"phpunit/phpunit": "^8.5",
"povils/phpmnd": "^2.1",
"psalm/plugin-phpunit": "^0.8.0",
"psalm/plugin-phpunit": "dev-master",
"roave/security-advisories": "dev-master",
"sebastian/phpcpd": "^4.1",
"signpostmarv/php-cs-fixer-config": "^0.14.0",
Expand Down
13 changes: 7 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aebfc76

Please sign in to comment.