mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Add another test
This commit is contained in:
parent
c8fffe362a
commit
49b6f01e93
@ -523,6 +523,18 @@ class InterfaceTest extends TestCase
|
||||
public function foo(array $f) : void {
|
||||
$this->f = $f;
|
||||
}
|
||||
}
|
||||
|
||||
class C2 implements I {
|
||||
/** @var string[] */
|
||||
private $f = [];
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function foo(array $f) : void {
|
||||
$this->f = $f;
|
||||
}
|
||||
}',
|
||||
],
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user