diff --git a/tests/ThisOutTest.php b/tests/ThisOutTest.php index 9c7adbdd563..b3652771543 100644 --- a/tests/ThisOutTest.php +++ b/tests/ThisOutTest.php @@ -55,6 +55,7 @@ public function __construct($data) { $this->data = [$data]; } * @psalm-this-out self */ public function setData($data): void { + /** @psalm-suppress InvalidPropertyAssignmentValue */ $this->data = [$data]; } /** @@ -64,6 +65,7 @@ public function setData($data): void { * @psalm-this-out self */ public function addData($data): void { + /** @psalm-suppress InvalidPropertyAssignmentValue */ $this->data []= $data; } /** @@ -83,10 +85,6 @@ public function getData(): array { return $this->data; } '$data1===' => 'list<1>', '$data2===' => 'list<2>', '$data3===' => 'list<2|3>', - ], - 'ignored_issues' => [ - 'PropertyTypeCoercion', - 'InvalidPropertyAssignmentValue' ] ] ];