mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Add test
This commit is contained in:
parent
3098e51299
commit
18a4752970
@ -1203,6 +1203,17 @@ class MethodCallTest extends TestCase
|
|||||||
'ignored_issues' => [],
|
'ignored_issues' => [],
|
||||||
'php_version' => '8.0',
|
'php_version' => '8.0',
|
||||||
],
|
],
|
||||||
|
'phpdocObjectTypeAndReferenceInParameter' => [
|
||||||
|
'code' => '<?php
|
||||||
|
class Foo {
|
||||||
|
/**
|
||||||
|
* @param object $object
|
||||||
|
*/
|
||||||
|
public function bar(&$object): void {}
|
||||||
|
}
|
||||||
|
$x = new Foo();
|
||||||
|
$x->bar($x);',
|
||||||
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user