-
-
Notifications
You must be signed in to change notification settings - Fork 946
Closed
mockery/mockery
#828Description
The PHPDoc tag of foo[] should equal array<int, foo> and not array<foo>
1/1 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------------------------------------------------------------
Line baz.php
------ ----------------------------------------------------------------------------------------------------------
10 PHPDoc tag @param for parameter $foos with type array<foo> is not subtype of native type array<int, foo>
------ ----------------------------------------------------------------------------------------------------------
[ERROR] Found 1 errorfoo.php
<?php
class foo
{
public function bar(): void
{
}
}baz.php
<?php
require_once __DIR__ . '/foo.php';
class baz
{
/**
* @param foo[] $foos
*/
public function test(foo ...$foos): void
{
// ...
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels